mjumbewu / django-jstemplate

Embed Javascript templates (mustache.js and more) into Django templates with minimal fuss.
Other
41 stars 16 forks source link

handlebarjs failing on non-debug deployments #12

Open adamlwgriffiths opened 8 years ago

adamlwgriffiths commented 8 years ago

When deploying to non-DEBUG builds, handlebarjs fails to inject handlebar code from a template file. I'm at a loss to explain why, as it works locally.

Ie, when running the following code:

{% handlebarsjs 'handlebar_template' precompile %}

Locally I get the following result:

<script type="text/x-handlebars-template" id="handlebar_template">
...

But in production I get nothing. I know it's not being stripped out by the server, as I can manually include the locally output tags inside a django {% verbatim %} tag and it works.