summaryrefslogtreecommitdiffstats
path: root/t/block-helpers.t
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2015-12-03 03:26:04 -0500
committerJesse Luehrs <doy@tozt.net>2015-12-03 03:26:04 -0500
commitbba91a4f6f70c8058332161059f7e19fa90f582f (patch)
tree39371a256a7102e4e45bd1250c971ea30fb4492d /t/block-helpers.t
parent2e832cf46a48430ddd3c6d542c5e1dc61ddef481 (diff)
downloadtext-handlebars-bba91a4f6f70c8058332161059f7e19fa90f582f.tar.gz
text-handlebars-bba91a4f6f70c8058332161059f7e19fa90f582f.zip
no need for this to be its own file
Diffstat (limited to 't/block-helpers.t')
-rw-r--r--t/block-helpers.t22
1 files changed, 22 insertions, 0 deletions
diff --git a/t/block-helpers.t b/t/block-helpers.t
index 52e275f..36ab76c 100644
--- a/t/block-helpers.t
+++ b/t/block-helpers.t
@@ -528,4 +528,26 @@ RENDERED
"object hierarchy access (RT#94792)"
);
+render_ok(
+ <<TEMPLATE,
+{{{outer}}}
+{{#each elements}}
+{{{inner}}}
+{{/each}}
+TEMPLATE
+ {
+ outer => '<em>example</em>',
+ elements => [
+ { inner => '<em>text</em>' },
+ { inner => '<h1>text</h1>' },
+ ]
+ },
+ <<RENDERED,
+<em>example</em>
+<em>text</em>
+<h1>text</h1>
+RENDERED
+ "raw variable access inside block helpers (#6)"
+);
+
done_testing;