summaryrefslogtreecommitdiffstats
path: root/lib/Text/Xslate/Syntax/Handlebars.pm
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2012-10-19 10:42:20 -0500
committerJesse Luehrs <doy@tozt.net>2012-10-19 10:42:20 -0500
commit47fc628b0553c6b1bf7597f29bd2b6b5ce238cbf (patch)
tree19bcbc1529a8994f8c3f70871bbba48861fe57f1 /lib/Text/Xslate/Syntax/Handlebars.pm
parent71a5add2e54c2cddf61db1af59c0653c2b763290 (diff)
downloadtext-handlebars-47fc628b0553c6b1bf7597f29bd2b6b5ce238cbf.tar.gz
text-handlebars-47fc628b0553c6b1bf7597f29bd2b6b5ce238cbf.zip
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.
Diffstat (limited to 'lib/Text/Xslate/Syntax/Handlebars.pm')
-rw-r--r--lib/Text/Xslate/Syntax/Handlebars.pm2
1 files changed, 1 insertions, 1 deletions
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 ]),
);
}