From a7f5186bf49ef20010c2eae7717b3a738a3b548e Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Mon, 23 Oct 2023 13:32:37 +0200 Subject: Add test specifically for named blocks, and named macros --- testing/templates/named-end.html | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 testing/templates/named-end.html (limited to 'testing/templates/named-end.html') diff --git a/testing/templates/named-end.html b/testing/templates/named-end.html new file mode 100644 index 0000000..35eb0bb --- /dev/null +++ b/testing/templates/named-end.html @@ -0,0 +1,9 @@ +{% extends "base.html" %} +{# Testing named "endmacro" #} +{% macro foo(b) -%} + {% if b %}t{% else %}f{% endif -%} +{% endmacro foo -%} +{# Testing named endblock declaration #} +{% block what %}{% endblock what %} +{# Testing named endblock call #} +{% block foo %}tadam{% endblock foo %} -- cgit