Template variables with dots in HTML::Template::Expr
"Roel Plieger (Bossers & Cnossen)" <[email protected]> Tue, 5 Dec 2006 09:23:06 +0100
| Newsgroups | gmane.comp.lang.perl.modules.html-template |
|---|---|
| Message-ID | <[email protected]> |
As a WebGUI user/developer I (and all other WebGUI people :-) have the
need to be able to use variables with dots, and this is not possible at
the moment. However there's a simple solution:
in the HTML::Template::Expr module the definition of 'var' in the
$GRAMMAR section needs the inclusion of the dot character:
var : /[A-Za-z_][A-Za-z0-9_.]*/ { \\\$item[1 <file://$item[1/> ] }
This way dots are allowed inside the variable names! Would it be
possible to include this solution in the next release?
Cheers, Roel Plieger.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Html-template-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/html-template-users