Skip to content

Instantly share code, notes, and snippets.

@CapnKernel
Created November 19, 2013 05:17
Show Gist options
  • Select an option

  • Save CapnKernel/7540675 to your computer and use it in GitHub Desktop.

Select an option

Save CapnKernel/7540675 to your computer and use it in GitHub Desktop.
<script id="ois-order-template" type="x-handlebars-template">
{% verbatim %}
{{#each this}}
<li><a href="{% endverbatim %}{% url 'backend.views.order' id="{{ id }}" as my_url %}{{ my_url|safe }}{% verbatim %}">link</a> for {{ id }}/{{ hash }}</li>
{{/each}}
{% endverbatim %}
</script>

=>
<script id="ois-order-template" type="x-handlebars-template">
{{#each this}}
<li><a href="/backend/order/%7B%7B%20id%20%7D%7D">link</a> for {{ id }}/{{ hash }}</li>
{{/each}}
</script>

what I want:
<script id="ois-order-template" type="x-handlebars-template">
{{#each this}}
<li><a href="/backend/order/{{ id }}">link</a> for {{ id }}/{{ hash }}</li>
{{/each}}
</script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment