Package : perl-Text-Handlebars
Package details
Summary: Http://handlebarsjs.com/ for Text::Xslate
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) = @_;
URL: http://search.cpan.org/dist/Text-Handlebars
License: GPL+ or Artistic
Maintainer: nobody
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) = @_;
URL: http://search.cpan.org/dist/Text-Handlebars
License: GPL+ or Artistic
Maintainer: nobody
List of RPMs
- perl-Text-Handlebars-0.50.0-2.mga6.src.rpm (Mageia 6, x86_64 media, core-release)