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

Add ifnotswitch template tag#92

Open
mrfuxi wants to merge 1 commit intodisqus:masterfrom
mrfuxi:ifnotswitch-template-tag
Open

Add ifnotswitch template tag#92
mrfuxi wants to merge 1 commit intodisqus:masterfrom
mrfuxi:ifnotswitch-template-tag

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 mrfuxi force-pushed the ifnotswitch-template-tag branch from 62fe3dd to 41b388a Compare February 10, 2015 10:29
@mrfuxi mrfuxi force-pushed the ifnotswitch-template-tag branch from 41b388a to 3a09bab Compare February 10, 2015 12:09
@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