From c84e87118fde784eaf5792ebb61af9e4fb9b21c0 Mon Sep 17 00:00:00 2001 From: Logan Bell Date: Thu, 25 Apr 2013 13:44:11 -0700 Subject: Updated POD to be correct. * If a user actually executes the synopsis it will not produce the results specified in the POD. Added the missing {} to make it work as demonstrated. --- lib/Text/Handlebars.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Text/Handlebars.pm b/lib/Text/Handlebars.pm index 3a4647b..bc03b7b 100644 --- a/lib/Text/Handlebars.pm +++ b/lib/Text/Handlebars.pm @@ -27,10 +27,10 @@ use Try::Tiny; my $vars = { author => { firstName => 'Alan', lastName => 'Johnson' }, body => "I Love Handlebars", - comments => [ + comments => [{ author => { firstName => 'Yehuda', lastName => 'Katz' }, body => "Me too!", - ], + }], }; say $handlebars->render_string(<<'TEMPLATE', $vars); -- cgit v1.2.3