From 5b2e9cf99274827079f70f10966f6284d075e624 Mon Sep 17 00:00:00 2001 From: Vicente Ramirez Perea Date: Tue, 5 Mar 2019 22:47:17 +0100 Subject: Documenting feature render in template --- testing/templates/render_in_place.html | 6 ++++++ testing/templates/render_in_place_sec1.html | 2 ++ testing/templates/render_in_place_sec2.html | 2 ++ 3 files changed, 10 insertions(+) create mode 100644 testing/templates/render_in_place.html create mode 100644 testing/templates/render_in_place_sec1.html create mode 100644 testing/templates/render_in_place_sec2.html (limited to 'testing/templates') diff --git a/testing/templates/render_in_place.html b/testing/templates/render_in_place.html new file mode 100644 index 0000000..3dff36c --- /dev/null +++ b/testing/templates/render_in_place.html @@ -0,0 +1,6 @@ +Section 1: {{ s1.render().unwrap() }} +Section 2: {{ s2.render().unwrap()|safe }} +Section 3 for: +{% for s in s3.as_slice() -%} +* {{ s.render().unwrap() }} +{% endfor %} diff --git a/testing/templates/render_in_place_sec1.html b/testing/templates/render_in_place_sec1.html new file mode 100644 index 0000000..75f9fd6 --- /dev/null +++ b/testing/templates/render_in_place_sec1.html @@ -0,0 +1,2 @@ +A={{ a }} +B={{ b }} diff --git a/testing/templates/render_in_place_sec2.html b/testing/templates/render_in_place_sec2.html new file mode 100644 index 0000000..2a0ae21 --- /dev/null +++ b/testing/templates/render_in_place_sec2.html @@ -0,0 +1,2 @@ +C={{ c }} +D={{ d }} -- cgit