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. --- t/partials.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 't/partials.t') 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]}}', { -- cgit v1.2.3-54-g00ecf