makinacorpus / django-templatetag-handlebars

Easily embed Handlebars.js templates in your django templates
GNU Lesser General Public License v3.0
48 stars 21 forks source link

about django include tag #4

Open ghost opened 11 years ago

ghost commented 11 years ago

i want to include my jstemplate file like tpl_a.html which was wroten some html and used tplhandlebar tag, when i include this tpl file into another tpl, it can't work correctly, after rending found nothing. sample code: tpl_a.html {% tplhandlebars "product form" %}

...........{{product}}............
               {% endtplhandlebars %}
     some_form.html
               <div>
               hello
               {% include "tpl_a.html" %}
               </div>

after rendering i found nothing about tpl_a.html in my page some_form.html, just a word hello

leplatrem commented 11 years ago

I do not see any reason for this...

Can you try with ssi please ? https://docs.djangoproject.com/en/dev/ref/templates/builtins/#ssi