You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 20, 2018. It is now read-only.
The documentation for {% ifswitch %} gives two examples. The first one doesn't quote the switch name:
{% ifswitch switch_name %}
switch_name is active!
{% else %}
switch_name is not active :(
{% endifswitch %}
whereas the second one does:
{% ifswitch "my switch name" user %}
"my switch name" is active!
{% endifswitch %}
Based on a quick test and a brief look at the code for the template tag it seems that a quoted argument is not resolved against the template context, so the quotes are included in the switch name. A quoted switch name in the template tag doesn't match an unquoted switch name created in Nexus.
Strangely enough, a switch with a quoted name can't be created if a similarly named unquoted switch already exists.
The text was updated successfully, but these errors were encountered:
akaihola
added a commit
to akaihola/gargoyle
that referenced
this issue
Apr 17, 2012
The documentation for
{% ifswitch %}
gives two examples. The first one doesn't quote the switch name:whereas the second one does:
Based on a quick test and a brief look at the code for the template tag it seems that a quoted argument is not resolved against the template context, so the quotes are included in the switch name. A quoted switch name in the template tag doesn't match an unquoted switch name created in Nexus.
Strangely enough, a switch with a quoted name can't be created if a similarly named unquoted switch already exists.
The text was updated successfully, but these errors were encountered: