aboutsummaryrefslogtreecommitdiffstats
path: root/testing/templates/match-opt.html
diff options
context:
space:
mode:
authorLibravatar Anthony Nowell <anowell@gmail.com>2017-10-05 02:47:36 -0600
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2017-11-02 14:58:46 +0100
commitcc51d201ab9e7ba958363d1f74b7bfd4dd12fecf (patch)
treef7c0c5ba23f1a6125846e248b73a8d273ebd7979 /testing/templates/match-opt.html
parent751dee3fbabb35a8ad30ebdaee8e4dd4120c289a (diff)
downloadaskama-cc51d201ab9e7ba958363d1f74b7bfd4dd12fecf.tar.gz
askama-cc51d201ab9e7ba958363d1f74b7bfd4dd12fecf.tar.bz2
askama-cc51d201ab9e7ba958363d1f74b7bfd4dd12fecf.zip
support literals in match arms
Diffstat (limited to 'testing/templates/match-opt.html')
-rw-r--r--testing/templates/match-opt.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/testing/templates/match-opt.html b/testing/templates/match-opt.html
new file mode 100644
index 0000000..c77a2a6
--- /dev/null
+++ b/testing/templates/match-opt.html
@@ -0,0 +1,8 @@
+{% match item %}
+{% when Some with ("foo") %}
+Found literal foo
+{% when Some with (val) %}
+Found {{val}}
+{% when None %}
+Not Found
+{% endmatch %}