aboutsummaryrefslogtreecommitdiffstats
path: root/testing/templates
diff options
context:
space:
mode:
authorLibravatar Tuomas Siipola <tuomas@zpl.fi>2020-01-03 20:36:17 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2020-01-03 19:56:18 +0100
commitcef055108de6c51c1423cd6a8919730ef01f64a3 (patch)
tree1e2d2bbac73110453388b13ba781a1101803a37b /testing/templates
parent2446315d38882efe43a31a3749481eac9b25615d (diff)
downloadaskama-cef055108de6c51c1423cd6a8919730ef01f64a3.tar.gz
askama-cef055108de6c51c1423cd6a8919730ef01f64a3.tar.bz2
askama-cef055108de6c51c1423cd6a8919730ef01f64a3.zip
Support char literals
Diffstat (limited to '')
-rw-r--r--testing/templates/literals.html1
-rw-r--r--testing/templates/match-literal-char.html8
2 files changed, 9 insertions, 0 deletions
diff --git a/testing/templates/literals.html b/testing/templates/literals.html
index 9d973bb..b5fb472 100644
--- a/testing/templates/literals.html
+++ b/testing/templates/literals.html
@@ -1,3 +1,4 @@
+{{ 'a' }}
{{ "a" }}
{{ true }}
{{ false }}
diff --git a/testing/templates/match-literal-char.html b/testing/templates/match-literal-char.html
new file mode 100644
index 0000000..2ff255d
--- /dev/null
+++ b/testing/templates/match-literal-char.html
@@ -0,0 +1,8 @@
+{% match item %}
+{% when 'a' %}
+Found literal a
+{% when 'b' %}
+Found literal b
+{% else %}
+Else found {{item}}
+{% endmatch %}