summaryrefslogtreecommitdiffstats
path: root/lib/Text/Handlebars.pm
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2012-10-05 13:14:14 -0500
committerJesse Luehrs <doy@tozt.net>2012-10-05 13:16:21 -0500
commitab64f8c31f63d5be9fb109fb062bb562064553b9 (patch)
tree5fbb9f49a5d2cdcba19e7d18fb20fe1c51ba8a90 /lib/Text/Handlebars.pm
parentdaa216440c90d3b11441ebe24b587ad721605041 (diff)
downloadtext-handlebars-ab64f8c31f63d5be9fb109fb062bb562064553b9.tar.gz
text-handlebars-ab64f8c31f63d5be9fb109fb062bb562064553b9.zip
actually, @foo just seems to be another kind of variable?
really can't tell what the difference is between passing data in as normal template variables and passing them in as "template data" probably just won't support template data until someone can explain this better, because the handlebars test suite isn't very clear on the subject
Diffstat (limited to 'lib/Text/Handlebars.pm')
-rw-r--r--lib/Text/Handlebars.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Text/Handlebars.pm b/lib/Text/Handlebars.pm
index bbc53a9..7316ce8 100644
--- a/lib/Text/Handlebars.pm
+++ b/lib/Text/Handlebars.pm
@@ -46,6 +46,7 @@ sub default_functions {
weaken(my $vars_copy = $vars);
return {
+ '@index' => $i,
%$vars,
%$value,
'..' => $vars_copy,