From cef055108de6c51c1423cd6a8919730ef01f64a3 Mon Sep 17 00:00:00 2001 From: Tuomas Siipola Date: Fri, 3 Jan 2020 20:36:17 +0200 Subject: Support char literals --- testing/templates/literals.html | 1 + testing/templates/match-literal-char.html | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 testing/templates/match-literal-char.html (limited to 'testing/templates') 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 %} -- cgit