From cc51d201ab9e7ba958363d1f74b7bfd4dd12fecf Mon Sep 17 00:00:00 2001 From: Anthony Nowell Date: Thu, 5 Oct 2017 02:47:36 -0600 Subject: support literals in match arms --- testing/templates/match-opt.html | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 testing/templates/match-opt.html (limited to 'testing/templates/match-opt.html') 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 %} -- cgit