summaryrefslogtreecommitdiffstats
path: root/t/partials.t
diff options
context:
space:
mode:
Diffstat (limited to 't/partials.t')
-rw-r--r--t/partials.t25
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;