[Fixed]-Using Django Template Variables in javascript

1👍

Use verbatim:

Stops the template engine from rendering the contents of this block
tag.

A common use is to allow a JavaScript template layer that collides
with Django’s syntax. For example:

{% verbatim %}
     {{if dying}}Still alive.{{/if}} 
{% endverbatim %}

Leave a comment