diff options
author | PizzasBear <43722034+PizzasBear@users.noreply.github.com> | 2023-11-22 15:56:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-22 14:56:14 +0100 |
commit | 48c6cd327d3c1df4218898be509250efcc56597c (patch) | |
tree | 6db2748a99e036960a0421070c222af096f040b7 /testing/templates/match-enum-or.html | |
parent | ea7267dfc2914cdc340bae1a823c0660daef19e6 (diff) | |
download | askama-48c6cd327d3c1df4218898be509250efcc56597c.tar.gz askama-48c6cd327d3c1df4218898be509250efcc56597c.tar.bz2 askama-48c6cd327d3c1df4218898be509250efcc56597c.zip |
Enhance match to include multiple targets (#911)
Signed-off-by: max <gmx.sht@gmail.com>
Diffstat (limited to '')
-rw-r--r-- | testing/templates/match-enum-or.html | 8 |
1 files changed, 8 insertions, 0 deletions
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 %} + |