From ab64f8c31f63d5be9fb109fb062bb562064553b9 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 5 Oct 2012 13:14:14 -0500 Subject: 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 --- lib/Text/Handlebars.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/Text/Handlebars.pm') 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, -- cgit v1.2.3-54-g00ecf