aboutsummaryrefslogtreecommitdiffstats
path: root/testing/templates
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--testing/templates/match-literal.html8
-rw-r--r--testing/templates/match-opt.html (renamed from testing/templates/match.html)2
2 files changed, 10 insertions, 0 deletions
diff --git a/testing/templates/match-literal.html b/testing/templates/match-literal.html
new file mode 100644
index 0000000..22203f4
--- /dev/null
+++ b/testing/templates/match-literal.html
@@ -0,0 +1,8 @@
+{% match item %}
+{% when "foo" %}
+Found literal foo
+{% when "bar" %}
+Found literal bar
+{% else %}
+Else found {{item}}
+{% endmatch %}
diff --git a/testing/templates/match.html b/testing/templates/match-opt.html
index 51950b4..c77a2a6 100644
--- a/testing/templates/match.html
+++ b/testing/templates/match-opt.html
@@ -1,4 +1,6 @@
{% match item %}
+{% when Some with ("foo") %}
+Found literal foo
{% when Some with (val) %}
Found {{val}}
{% when None %}