diff options
author | Logan Bell <loganbell@gmail.com> | 2013-04-25 13:44:11 -0700 |
---|---|---|
committer | Logan Bell <loganbell@gmail.com> | 2013-04-25 13:44:11 -0700 |
commit | c84e87118fde784eaf5792ebb61af9e4fb9b21c0 (patch) | |
tree | c0de1c117c88addc600046369ef0f05e4b2d5c72 | |
parent | 90b7588f299bb52dba13891dbcbff2ae945ea382 (diff) | |
download | text-handlebars-c84e87118fde784eaf5792ebb61af9e4fb9b21c0.tar.gz text-handlebars-c84e87118fde784eaf5792ebb61af9e4fb9b21c0.zip |
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.
-rw-r--r-- | lib/Text/Handlebars.pm | 4 |
1 files 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); |