title: Handlebars.js in Django templates
body: <p>I need a javascript templating system and i think handlebars.js does an excellent job in this case.
  I'm having syntax conflicts with handlebars templates inside a django template because django tries to render handlebars variables.</p>
  
  <p>Is there a tag in django templates to stop rendering a block with curly braces? </p>
  
  <p>Something like:</p>
  
  <pre><code>{{ django_context_varable }} #works
  {{% raw %}}
  &lt;script id="restaurants-tpl" type="text/x-handlebars-template"&gt;
      &lt;ul&gt;
      {{#restaurants}} #not rendered by django, plain text
      &lt;li&gt;{{name}}&lt;/li&gt;
      {{/restaurants}}
      &lt;/ul&gt;
  &lt;/script&gt;
  {{% endraw %}}
  </code></pre>
  
  <hr>
  
  <p><strong>Edit</strong></p>
  
  <p>Likely i found <a href="http://www.holovaty.com/writing/django-two-phased-rendering/">this</a>. It works fine.</p>
  
  <p><strong>Update</strong></p>
  
  <p>Django 1.5 supports <a href="https://docs.djangoproject.com/en/1.5/ref/templates/builtins/#verbatim">verbatim</a> tag natively.</p>