Package : perl-Text-Handlebars > RPM : perl-Text-Handlebars-0.50.0-5.mga9.src.rpm
Basic items
Name | perl-Text-Handlebars |
Version | 0.50.0 |
Release | 5.mga9 |
URL | https://metacpan.org/release/Text-Handlebars |
Group | Development/Perl |
Summary | Http://handlebarsjs.com/ for Text::Xslate |
Size | 43KB |
Arch | noarch |
License | GPL+ or Artistic |
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) = @_;
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) = @_;
Media information
Distribution release | Mageia cauldron |
Media name | core-release |
Media arch | x86_64 |
Advanced items
Source RPM | NOT IN DATABASE ?! |
Build time | 2022-03-20 15:18:18 |
Changelog | View in Sophie |
Files | View in Sophie |
Dependencies | View in Sophie |