diff options
author | Shawn M Moore <code@sartak.org> | 2012-09-25 17:28:11 -0400 |
---|---|---|
committer | Shawn M Moore <code@sartak.org> | 2012-09-25 17:28:11 -0400 |
commit | 580c50ba568ebf3e50cd063a86559493487d2675 (patch) | |
tree | 36654568e61b52fdd472a1a0da547d8afeb8b83c /t | |
parent | a473e0c6a5c9b185f8844c3fe78193063e325fc3 (diff) | |
download | text-handlebars-580c50ba568ebf3e50cd063a86559493487d2675.tar.gz text-handlebars-580c50ba568ebf3e50cd063a86559493487d2675.zip |
Point to Text::Xslate's "function" re registerHelper
Diffstat (limited to 't')
-rw-r--r-- | t/004-helpers.t | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/t/004-helpers.t b/t/004-helpers.t index 3d39755..c9641e6 100644 --- a/t/004-helpers.t +++ b/t/004-helpers.t @@ -7,6 +7,7 @@ my $tx = Text::Xslate->new(syntax => 'Handlebars'); # XXX I'm not sure how helpers should be registered in Perl # in JS, it's global which is crappy +# Text::Xslate->new has a "function" parameter for registering helpers Handlebars->registerHelper(noop => sub { my ($context, $options) = @_; return $options->{fn}->($context); |