Reputation: 406
I am trying to cache return value of {% url ..}
function to a variable with with
template tag.
here is my code: {% with path=url "show_cart" %} {% endwith %}
And with this code I get this exception: TemplateSyntaxError
u'with' received an invalid token: u'"show_cart"'
Is it possible to assign result of url
function to variable?
Upvotes: 1
Views: 563