diff options
author | Vicente Ramirez Perea <vicente.ramirez.perea@gmail.com> | 2019-03-05 22:47:17 +0100 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2019-03-18 10:19:48 +0100 |
commit | 5b2e9cf99274827079f70f10966f6284d075e624 (patch) | |
tree | 0ad69e32d5aa59defb1dfbdc1e684ca2de8d608d /testing/templates | |
parent | 84d81e101bc706cfe85320df39c1f32828225153 (diff) | |
download | askama-5b2e9cf99274827079f70f10966f6284d075e624.tar.gz askama-5b2e9cf99274827079f70f10966f6284d075e624.tar.bz2 askama-5b2e9cf99274827079f70f10966f6284d075e624.zip |
Documenting feature render in template
Diffstat (limited to '')
-rw-r--r-- | testing/templates/render_in_place.html | 6 | ||||
-rw-r--r-- | testing/templates/render_in_place_sec1.html | 2 | ||||
-rw-r--r-- | testing/templates/render_in_place_sec2.html | 2 |
3 files changed, 10 insertions, 0 deletions
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 }} |