disqus / gargoyle

Feature switches in Django
http://engineering.disqus.com
Apache License 2.0
746 stars 112 forks source link

Add ifnotswitch template tag #92

Open mrfuxi opened 9 years ago

mrfuxi commented 9 years ago

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 commented 8 years ago

Is anyone interested in this PR? @mattrobenolt