summaryrefslogtreecommitdiffstats
path: root/t/expressions.t
diff options
context:
space:
mode:
Diffstat (limited to 't/expressions.t')
-rw-r--r--t/expressions.t16
1 files changed, 16 insertions, 0 deletions
diff --git a/t/expressions.t b/t/expressions.t
index 08d0894..f12022c 100644
--- a/t/expressions.t
+++ b/t/expressions.t
@@ -87,4 +87,20 @@ render_ok(
);
}
+render_ok(
+ '{{.}} {{this}}',
+ "foo",
+ "foo foo",
+ "top level current context"
+);
+
+render_ok(
+ '{{#thing}}{{.}} {{this}}{{/thing}}',
+ {
+ thing => [ "foo" ],
+ },
+ "foo foo",
+ "nested current context"
+);
+
done_testing;