Add @template_test() decorator for creating custom jinja2 tests, like existing @template_filter() for filters. Fixes #332

This commit is contained in:
Armin Ronacher 2012-10-07 12:51:46 +02:00
parent b2fc9febdd
commit f034d8d345
5 changed files with 265 additions and 11 deletions

View file

@ -0,0 +1,3 @@
{% if value is boolean %}
Success!
{% endif %}