diff options
Diffstat (limited to 't/block-helpers.t')
-rw-r--r-- | t/block-helpers.t | 22 |
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; |