syrusakbary / pyjade

Jade template system for Django, Jinja2 and Mako
MIT License
699 stars 122 forks source link

django "include" or jade "include" #226

Open jobinabraham15 opened 8 years ago

jobinabraham15 commented 8 years ago

Hi,

Would like to know, what is the proper way to do "include" using pyjade. Should we use the jade language include or the django include. Using pyjade these two are different in implementation.

Jade include : include ./layout.jade
Django include : - include "layout.jade" which would then convert into a django templatetag.

So, which of the above is the correct usage/

beltiras commented 8 years ago

You use the Jade syntax to include jade templates, Django style to include Django templates.