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