Howdy!
Is it possible to set custom varibles tough the templating language like this?
{% if <condition> %}
{% variable_name = <some value> %}
{% else %}
{% variable_name = <some other value> %}
{% endif %}
That would be extremely useful to not have to duplicate large chunks of templating code.
If that is not directly supported, is there any hack for achieving a similar result?
Best answer by Taylor Tarpley
View original