[Django]-Including handlebars templates within a django generated page

5👍

I think this should solve your problem

https://gist.github.com/ericflo/629508

so use something like

{% verbatim %} {{clientSideContent}} {% endverbatim %}

2👍

Never versions of django (starting from version 1.5) have support for the {% verbatim %} tag:

So something like this should work:

<script id="my-script" type="text/x-handlebars-template">
  {% verbatim %}
  <p> {{clientSideContent}} </p>
  {% endverbatim %}
</script>

Hope it helps.

Leave a comment