]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
Ensure macro definitions are properly parsed
authorKevin Brown <kevin@kevin-brown.com>
Fri, 8 May 2020 21:25:57 +0000 (17:25 -0400)
committerKevin <kevin@kevin-brown.com>
Sun, 10 May 2020 01:50:06 +0000 (21:50 -0400)
test_template.jinja

index 456d6492dc6dc61e8e2b18b364be16bbbcdcc3d4..d3b16cbc7e4d344587e3348332cfc1543d455f2b 100644 (file)
@@ -31,3 +31,7 @@ across lines #}
         The value will increase even more!\r
     {% endif %}\r
 {% endfor %}\r
+{% macro textarea(name, value='', rows=10, cols=40) %}\r
+    <textarea name="{{ name }}" rows="{{ rows }}" cols="{{ cols\r
+        }}">{{ value|e }}</textarea>\r
+{% endmacro %}
\ No newline at end of file