diff options
author | Anthony Nowell <anowell@gmail.com> | 2017-09-27 01:53:35 -0600 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2017-11-02 14:55:10 +0100 |
commit | 468f376bfc2cf3e09addac37cd144de56b5f93bf (patch) | |
tree | 3a6e127bac7e6a2193739902ff60a16b12c51c12 /testing/templates/match.html | |
parent | 14beb21d0cef62ca47ad85617bd9460369a15b61 (diff) | |
download | askama-468f376bfc2cf3e09addac37cd144de56b5f93bf.tar.gz askama-468f376bfc2cf3e09addac37cd144de56b5f93bf.tar.bz2 askama-468f376bfc2cf3e09addac37cd144de56b5f93bf.zip |
implement basic match functionality
Diffstat (limited to 'testing/templates/match.html')
-rw-r--r-- | testing/templates/match.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/testing/templates/match.html b/testing/templates/match.html new file mode 100644 index 0000000..51950b4 --- /dev/null +++ b/testing/templates/match.html @@ -0,0 +1,6 @@ +{% match item %} +{% when Some with (val) %} +Found {{val}} +{% when None %} +Not Found +{% endmatch %} |