forked from orbit-oss/flask
Add @template_test() decorator for creating custom jinja2 tests, like existing @template_filter() for filters. Fixes #332
This commit is contained in:
parent
b2fc9febdd
commit
f034d8d345
5 changed files with 265 additions and 11 deletions
3
flask/testsuite/templates/template_test.html
Normal file
3
flask/testsuite/templates/template_test.html
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{% if value is boolean %}
|
||||
Success!
|
||||
{% endif %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue