From 8b5d59af62fe650d7c0e79f2086002fae4942629 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Sat, 18 Feb 2017 16:04:27 +0100 Subject: Add test for handling Option types (with method calls) --- testing/templates/option.html | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 testing/templates/option.html (limited to 'testing/templates/option.html') diff --git a/testing/templates/option.html b/testing/templates/option.html new file mode 100644 index 0000000..64a055e --- /dev/null +++ b/testing/templates/option.html @@ -0,0 +1,5 @@ +{% if var.is_some() -%} + some: {{ var.unwrap() }} +{%- else -%} + none +{%- endif %} -- cgit