added ability to use quotes in include tag#188
added ability to use quotes in include tag#188zeraien wants to merge 3 commits intosyrusakbary:masterfrom
Conversation
|
On the other hand, Jade itself does not require (or understand) quotes in the include or extends tags, so maybe I jumped the gun here. I kinda thought one could take this a step further to allow tags like djangos: |
|
We can already use django's own include tag with the hyphen templatetag - include "foo" with bar=bazso it seems to me that keeping compatibility with Jade as much as possible would be nice for the actual This is all just my opinion, though :) |
4a76e8a to
eb84811
Compare
|
Since there are no updates to pyjade and its successor recently was deleted from pypi, I took the liberty to revive it: https://github.com/kakulukia/pypugjs Version 5.0.1 has fixed the incompatibility with recent Django versions. |
if you have filenames with spaces or wish to use additional django-specific include flags, like "with foo=bar", you need to be able to surround the filename with double or single quotes.
This commit simply strips quotes from any path passed to the include or extends tags.