summaryrefslogtreecommitdiffstats
path: root/t/partials.t
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2012-10-19 10:42:20 -0500
committerJesse Luehrs <doy@tozt.net>2013-01-02 13:56:21 -0600
commitb2e891ea7b9e44bb598d41380d0c485f3955af6e (patch)
tree4ea08c88c94975bb1b78609c01c603a8826a8d45 /t/partials.t
parent271ae740506b9b64119494a3a34bfe8a9786037e (diff)
downloadtext-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 't/partials.t')
-rw-r--r--t/partials.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/partials.t b/t/partials.t
index 157fab6..ad7f7d9 100644
--- a/t/partials.t
+++ b/t/partials.t
@@ -8,7 +8,7 @@ use Test::Handlebars;
{ local $TODO = "unimplemented";
render_ok(
{
- path => [ { dude => '{{#this}}{{name}} ({{url}}) {{/this}}' } ],
+ path => [ { 'dude.tx' => '{{#this}}{{name}} ({{url}}) {{/this}}' } ],
},
'Dudes: {{>dude dudes}}',
{
@@ -24,7 +24,7 @@ render_ok(
render_ok(
{
- path => [ { dude => '{{name}}' } ],
+ path => [ { 'dude.tx' => '{{name}}' } ],
},
'Dudes: {{> [dude]}}',
{