From 48c6cd327d3c1df4218898be509250efcc56597c Mon Sep 17 00:00:00 2001 From: PizzasBear <43722034+PizzasBear@users.noreply.github.com> Date: Wed, 22 Nov 2023 15:56:14 +0200 Subject: Enhance match to include multiple targets (#911) Signed-off-by: max --- testing/templates/match-enum-or.html | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 testing/templates/match-enum-or.html (limited to 'testing/templates') diff --git a/testing/templates/match-enum-or.html b/testing/templates/match-enum-or.html new file mode 100644 index 0000000..ffd364d --- /dev/null +++ b/testing/templates/match-enum-or.html @@ -0,0 +1,8 @@ +The card is +{%- match suit %} + {%- when Suit::Clubs or Suit::Spades -%} + {{ " black" }} + {%- when Suit::Diamonds or Suit::Hearts -%} + {{ " red" }} +{%- endmatch %} + -- cgit