From ecafb9b10aa878f2598fd3a4a1deab62ffec40b8 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Thu, 23 Jul 2020 22:04:29 +0200 Subject: Use efficient method for nested template rendering --- testing/templates/render_in_place.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'testing/templates') 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 %} -- cgit