Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > e68349c63a1bf6add23b2bc800c51574

perl-Text-Handlebars-0.10.0-2.mga3.src.rpm

Description:

This module subclasses the Text::Xslate manpage to provide a parser for
http://handlebarsjs.com/ templates. In most ways, this module functions
identically to Text::Xslate, except that it parses Handlebars templates
instead.

Text::Handlebars accepts an additional constructor parameter of 'helpers'
to define Handlebars-style helper functions. Standard helpers are identical
to functions defined with the 'function' parameter, except that they
receive the current context implicitly as the first parameter (since perl
doesn't have an implicit 'this' parameter). Block helpers also receive the
context as the first parameter, and they also receive the 'options'
parameter as a hashref. As an example:

sub {
my ($context, $items, $options) = @_;

Generated packages:

Other version of this rpm: