From 47fc628b0553c6b1bf7597f29bd2b6b5ce238cbf Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 19 Oct 2012 10:42:20 -0500 Subject: simplify the logic for template suffixes now, anything that doesn't contain a '.' will have the suffix appended unconditionally, rather than looking for both the suffixed and unsuffixed versions. this is more in line with how text::xslate typically works. --- lib/Text/Xslate/Syntax/Handlebars.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Text/Xslate/Syntax/Handlebars.pm') diff --git a/lib/Text/Xslate/Syntax/Handlebars.pm b/lib/Text/Xslate/Syntax/Handlebars.pm index 957dc17..b8854ea 100644 --- a/lib/Text/Xslate/Syntax/Handlebars.pm +++ b/lib/Text/Xslate/Syntax/Handlebars.pm @@ -438,7 +438,7 @@ sub std_partial { return $symbol->clone( arity => 'partial', - first => $partial, + first => ($partial->id =~ /\./ ? $partial : [ $partial ]), ); } -- cgit v1.2.3-54-g00ecf