[Fixed]-Can you declare multiple with variables in a django template?

32👍

The example on the doc page clearly states that you can assign more than one variable, but you wouldn’t need those commas:

{% with alpha=1 beta=2 %}
    ...
{% endwith %}

Reference:

with template tag

Leave a comment