diff options
Diffstat (limited to 'testing/templates/match-option-result-option.html')
-rw-r--r-- | testing/templates/match-option-result-option.html | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testing/templates/match-option-result-option.html b/testing/templates/match-option-result-option.html new file mode 100644 index 0000000..25396b6 --- /dev/null +++ b/testing/templates/match-option-result-option.html @@ -0,0 +1,10 @@ +{%- match foo -%} + {%- when None -%} + nothing + {%- when Some(Err(err)) -%} + err={{err}} + {%- when Some(Ok(None)) -%} + num=absent + {%- when Some(Ok(Some(num))) -%} + num={{num}} +{%- endmatch -%} |