SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

perl-Text-Handlebars rpm build for : openSUSE Tumbleweed. For other distributions click perl-Text-Handlebars.

Name : perl-Text-Handlebars
Version : 0.05 Vendor : obs://build_opensuse_org/devel:languages:perl
Release : 1.57 Date : 2024-08-05 20:44:09
Group : Development/Libraries/Perl Source RPM : perl-Text-Handlebars-0.05-1.57.src.rpm
Size : 0.04 MB
Packager : (none)
Summary : Http://handlebarsjs.com/ for Text::Xslate
Description :
This module subclasses Text::Xslate to provide a parser for at
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) = AATT_;

my $out = \"< ul>\";

for my $item (AATT$items) {
$out .= \"< li>\" . $options->{fn}->($item) . \"< /li>\";
}

return $out . \"< /ul>\
\";
},

defines a simple block helper to generate a \'< ul>\' list.

Text::Handlebars also overrides \'render\' and \'render_string\' to allow using
any type of data (not just hashrefs) as a context (so rendering a template
consisting of only \'{{.}}\' works properly).

RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-T/openSUSE_Tumbleweed/noarch

Content of RPM  Provides Requires

Download
ftp.icm.edu.pl  perl-Text-Handlebars-0.05-1.57.noarch.rpm
     

Provides :
perl(Text::Handlebars)
perl(Text::Handlebars::Compiler)
perl(Text::Handlebars::Symbol)
perl(Text::Xslate::Syntax::Handlebars)
perl-Text-Handlebars

Requires :
perl(:MODULE_COMPAT_5.40.0)
perl(Mouse)
perl(Text::Xslate) >= 2.0000
perl(Text::Xslate::Compiler)
perl(Text::Xslate::Parser)
perl(Text::Xslate::Symbol)
perl(Text::Xslate::Util)
perl(Try::Tiny)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsZstd) <= 5.4.18-1


Content of RPM :
/usr/lib/perl5/vendor_perl/5.40.0/Text
/usr/lib/perl5/vendor_perl/5.40.0/Text/Handlebars
/usr/lib/perl5/vendor_perl/5.40.0/Text/Handlebars.pm
/usr/lib/perl5/vendor_perl/5.40.0/Text/Handlebars/Compiler.pm
/usr/lib/perl5/vendor_perl/5.40.0/Text/Handlebars/Symbol.pm
/usr/lib/perl5/vendor_perl/5.40.0/Text/Xslate
/usr/lib/perl5/vendor_perl/5.40.0/Text/Xslate/Syntax
/usr/lib/perl5/vendor_perl/5.40.0/Text/Xslate/Syntax/Handlebars.pm
/usr/share/doc/packages/perl-Text-Handlebars
/usr/share/doc/packages/perl-Text-Handlebars/Changes
/usr/share/doc/packages/perl-Text-Handlebars/LICENSE
/usr/share/doc/packages/perl-Text-Handlebars/README
/usr/share/man/man3/Text::Handlebars.3pm.gz

 
ICM