Name : perl-HTML-Template-Expr
| |
Version : 0.70.0
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 150500.1.1
| Date : 2024-07-23 22:00:01
|
Group : Unspecified
| Source RPM : perl-HTML-Template-Expr-0.70.0-150500.1.1.src.rpm
|
Size : 0.05 MB
| |
Packager : https://www_suse_com/
| |
Summary : HTML::Template extension adding expression support
|
Description :
This module provides an extension to HTML::Template which allows expressions in the template syntax. This is purely an addition - all the normal HTML::Template options, syntax and behaviors will still work. See HTML::Template for details.
Expression support includes comparisons, math operations, string operations and a mechanism to allow you add your own functions at runtime. The basic syntax is:
< TMPL_IF EXPR=\"banana_count > 10\"> I\'ve got a lot of bananas. < /TMPL_IF>
This will output \"I\'ve got a lot of bananas\" if you call:
$template->param(banana_count => 100);
In your script. < TMPL_VAR>s also work with expressions:
I\'d like to have < TMPL_VAR EXPR=\"banana_count * 2\"> bananas.
This will output \"I\'d like to have 200 bananas.\" with the same param() call as above.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl/SLE_15_SP5/noarch |