github.com/insionng/yougam@v0.0.0-20170714101924-2bc18d833463/libraries/flosch/pongo2.v3/template_tests/firstof.tpl (about)

     1  {% firstof doesnotexist 42 %}
     2  {% firstof doesnotexist "<script>alert('xss');</script>" %}
     3  {% firstof doesnotexist "<script>alert('xss');</script>"|safe %}
     4  {% firstof doesnotexist simple.uint 42 %}
     5  {% firstof doesnotexist "test" simple.number 42 %}
     6  {% firstof %}
     7  {% firstof "test" "test2" %}