Skip to content
This repository has been archived by the owner on Jun 20, 2018. It is now read-only.

Add ifnotswitch template tag #92

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mrfuxi
Copy link

@mrfuxi mrfuxi commented Jan 13, 2015

Add ifnotswitch to handle situation like that:

{% ifswitch replace_old_functionality_123 %}
    {# DO NOTHING. Apparently doens't exist an ifnotswitch template tag #}
{% else %}
    <a href="/some/old/stuff">Something old</a>
{% endifswitch %}

...

{% ifswitch replace_old_functionality_123 %}
    <a href="/some/NEW/stuff">Brand new functionality located in different place</a>
{% endifswitch %}

Comment (example) taken from real code

@mrfuxi
Copy link
Author

mrfuxi commented Sep 12, 2015

Is anyone interested in this PR? @mattrobenolt

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant