Name : perl-HTML-Template-Expr
| |
Version : 0.70.0
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 1.4
| Date : 2011-11-18 12:07:03
|
Group : Unspecified
| Source RPM : perl-HTML-Template-Expr-0.70.0-1.4.src.rpm
|
Size : 0.05 MB
| |
Packager : (none)
| |
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/openSUSE_Tumbleweed/noarch |