syrusakbary / pyjade

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

pyjade and django-less #109

Open jakubzitny opened 11 years ago

jakubzitny commented 11 years ago

Hi, is there any way to use "some" extended functionality over jade with django? For example I want to use django-less to automatically compile less files to css, but they only support the default django templating engine.

Thanks.

egasimus commented 11 years ago

Allow me to ask, how does Jade/PyJade fit into the equation? Please clarify.

jakubzitny commented 11 years ago

If you are using the default django templates and you want to use e.g. django-less (to autocompile less to css), you have to write something like this (in the template):

{% load less %} <link rel="stylesheet" href="{{ STATIC_URL}}{% less "path/to/styles.less" %}" />

However, when I'm using jade/pyjade, there is no macro like {% load less %} macro or {% less .... %}, you know what I mean?

egasimus commented 11 years ago

According to what the README says, you could type:

- load less
- less ...