diff options
author | Jesse Luehrs <doy@tozt.net> | 2012-10-19 10:42:20 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2013-01-02 13:56:21 -0600 |
commit | b2e891ea7b9e44bb598d41380d0c485f3955af6e (patch) | |
tree | 4ea08c88c94975bb1b78609c01c603a8826a8d45 /lib/Text/Xslate | |
parent | 271ae740506b9b64119494a3a34bfe8a9786037e (diff) | |
download | text-handlebars-b2e891ea7b9e44bb598d41380d0c485f3955af6e.tar.gz text-handlebars-b2e891ea7b9e44bb598d41380d0c485f3955af6e.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')
-rw-r--r-- | lib/Text/Xslate/Syntax/Handlebars.pm | 2 |
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 ]), ); } |