summaryrefslogtreecommitdiffstats
path: root/t/blocks.t
diff options
context:
space:
mode:
Diffstat (limited to 't/blocks.t')
-rw-r--r--t/blocks.t14
1 files changed, 14 insertions, 0 deletions
diff --git a/t/blocks.t b/t/blocks.t
index 7cc68fe..8b44e9d 100644
--- a/t/blocks.t
+++ b/t/blocks.t
@@ -47,4 +47,18 @@ render_ok(
"nested array of hashes block variable"
);
+render_ok(
+ '{{#goodbyes}}{{@index}}. {{text}}! {{/goodbyes}}cruel {{world}}!',
+ {
+ goodbyes => [
+ { text => 'goodbye' },
+ { text => 'Goodbye' },
+ { text => 'GOODBYE' },
+ ],
+ world => 'world',
+ },
+ '0. goodbye! 1. Goodbye! 2. GOODBYE! cruel world!',
+ "\@index variable"
+);
+
done_testing;