Jinja Updates

The new parser works quite well so far, in fact too well. So far all unittests pass which is something i really, really hate. Usually it means that there are unittests missing :)

The new parser supports some new stuff. For example {{ foo.0 }} is supported for easier django template transition. A regular expression literal so that the “matching” filter finally makes sense, a set literal, conditional expressions and the debugger is finally a real help.

It’s still not in the trunk because some of the changes are too big for a simple merging. If someone has really, really complex templates, try the new-parser branch and try to render the templates there. If you encounter any errors, just poke me, i’ll fix it and add a unittest :D

Leave a Reply

cogitations driven by wordpress