diff options
Diffstat (limited to 't')
-rw-r--r-- | t/partials.t | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/t/partials.t b/t/partials.t new file mode 100644 index 0000000..8238d77 --- /dev/null +++ b/t/partials.t @@ -0,0 +1,25 @@ +#!/usr/bin/env perl +use strict; +use warnings; +use lib 't/lib'; +use Test::More; +use Test::Handlebars; + +{ local $TODO = "unimplemented"; +render_ok( + { + path => [ { dude => '{{#this}}{{name}} ({{url}}) {{/this}}' } ], + }, + 'Dudes: {{>dude dudes}}', + { + dudes => [ + { name => "Yehuda", url => "http://yehuda" }, + { name => "Alan", url => "http://alan" }, + ], + }, + 'Dudes: Yehuda (http://yehuda) Alan (http://alan) ', + "passing a context to partials" +); +} + +done_testing; |