aboutsummaryrefslogtreecommitdiffstats
path: root/testing/templates
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2020-07-23 22:04:29 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2020-08-25 22:14:35 +0200
commitecafb9b10aa878f2598fd3a4a1deab62ffec40b8 (patch)
tree4c264f1efe6b9ae69a4a18323e54b0c8aaab3f5c /testing/templates
parentb801724738563cd4481c5ca2b74458a37b499d21 (diff)
downloadaskama-ecafb9b10aa878f2598fd3a4a1deab62ffec40b8.tar.gz
askama-ecafb9b10aa878f2598fd3a4a1deab62ffec40b8.tar.bz2
askama-ecafb9b10aa878f2598fd3a4a1deab62ffec40b8.zip
Use efficient method for nested template rendering
Diffstat (limited to 'testing/templates')
-rw-r--r--testing/templates/render_in_place.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/testing/templates/render_in_place.html b/testing/templates/render_in_place.html
index 3dff36c..1096588 100644
--- a/testing/templates/render_in_place.html
+++ b/testing/templates/render_in_place.html
@@ -1,6 +1,6 @@
-Section 1: {{ s1.render().unwrap() }}
-Section 2: {{ s2.render().unwrap()|safe }}
+Section 1: {{ s1 }}
+Section 2: {{ s2|safe }}
Section 3 for:
{% for s in s3.as_slice() -%}
-* {{ s.render().unwrap() }}
+* {{ s }}
{% endfor %}