diff options
author | Andrew Dona-Couch -- GitHub drop ICE <hi@andrewcou.ch> | 2023-03-06 16:18:45 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-06 22:18:45 +0100 |
commit | dc864486ec8c258388b4e006d9517e6e30c34a4d (patch) | |
tree | 4419a02845917440f2846880ddf872a649b50373 /testing/templates | |
parent | 417cb924ae1f94d54e2eb13ebc7e9fab91b84588 (diff) | |
download | askama-dc864486ec8c258388b4e006d9517e6e30c34a4d.tar.gz askama-dc864486ec8c258388b4e006d9517e6e30c34a4d.tar.bz2 askama-dc864486ec8c258388b4e006d9517e6e30c34a4d.zip |
Propogate size_hint from sub-blocks (#788)
Closes #786
Diffstat (limited to '')
-rw-r--r-- | testing/templates/size-child-super.txt | 2 | ||||
-rw-r--r-- | testing/templates/size-child.txt | 2 | ||||
-rw-r--r-- | testing/templates/size-parent.txt | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/testing/templates/size-child-super.txt b/testing/templates/size-child-super.txt new file mode 100644 index 0000000..77c2916 --- /dev/null +++ b/testing/templates/size-child-super.txt @@ -0,0 +1,2 @@ +{% extends "size-parent.txt" %} +{% block main %}{% call super() %}{% endblock %} diff --git a/testing/templates/size-child.txt b/testing/templates/size-child.txt new file mode 100644 index 0000000..86adbf8 --- /dev/null +++ b/testing/templates/size-child.txt @@ -0,0 +1,2 @@ +{% extends "size-parent.txt" %} +{% block main %}{% if true %}123{% endif %}{% endblock %} diff --git a/testing/templates/size-parent.txt b/testing/templates/size-parent.txt new file mode 100644 index 0000000..e277a24 --- /dev/null +++ b/testing/templates/size-parent.txt @@ -0,0 +1 @@ +{% block main %}{% if true %}12345{% endif %}{% endblock %} |