summaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorShawn M Moore <code@sartak.org>2012-09-25 17:28:11 -0400
committerShawn M Moore <code@sartak.org>2012-09-25 17:28:11 -0400
commit580c50ba568ebf3e50cd063a86559493487d2675 (patch)
tree36654568e61b52fdd472a1a0da547d8afeb8b83c /t
parenta473e0c6a5c9b185f8844c3fe78193063e325fc3 (diff)
downloadtext-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.t1
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);