Name : perl-Template-Resolver
| |
Version : 1.16
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp156.1.1
| Date : 2024-07-03 19:07:09
|
Group : Development/Libraries/Perl
| Source RPM : perl-Template-Resolver-1.16-lp156.1.1.src.rpm
|
Size : 0.05 MB
| |
Packager : https://www_suse_com/
| |
Summary : Powerful, and Simple, Library for Resolving Placeholders in Templated Files
|
Description :
This module provides a powerful way to resolve placeholders inside of a templated file. It uses Template::Transformer to interpolate the the placeholder values. The provided template may refer to entity values directly (i.e. \'${TEMPLATE{my.entity.value}}\') or through transformations (i.e. \'${TEMPLATE_perl{property(\"my.truthy\") ? \"true\" : \"false\"}}\'). You may also loop over hash and array entities like this (newlines and indentation included for clarity):
${TEMPLATE< CLUB>:{my.clubs}}$ {TEMPLATE< MEMBER>:{< CLUB>.members}} ${TEMPLATE{< MEMBER>.name}} is a member of the ${TEMPLATE{< CLUB>.club_name}} club. ${TEMPLATE< MEMBER>:end} ${TEMPATE< CLUB>:end}
You may access the key when iterating over hashes:
${TEMPLATE< RESOURCE>:{my.resources}} Resource, ${TEMPLATE:< RESOURCE.key>} is ${TEMPLATE{< RESOURCE>.deployed_artifact}} ${TEMPLATE< RESOURCE>:end}
You may also access the index when iterating over arrays:
${TEMPLATE< CLUB>:{my.clubs}} Club at index ${TEMPLATE< CLUB.ix>} is ${TEMPLATE{< CLUB.name>}} ${TEMPLATE< CLUB>:end}
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-T/15.6/noarch |