Hi,
Thanks for the wonderful HTML::Template module. I made a few changes while
using it for my projects, hoping these changes will be useful for others:
1. add extended expression support without impact on speed
<TMPL_IF NAME="item ne 'pizza' && price != 0.99">
I got <TMPL_VAR NAME="item"> for
<TMPL_VAR "price * count + 0.5"> dollars.
<TMPL_ELSE>
gee, free pizza!
</TMPL_IF>
2. clean up global_vars implementation
3. add a new way to access outside variables without global_vars
This is a normal variable: <TMPL_VAR NORMAL>.<P>
<TMPL_LOOP NAME=FROOT_LOOP>
Use it inside the loop: <TMPL_VAR __NORMAL><P>
</TMPL_LOOP>
4. TMPL_VAR can now have a default value
<TMPL_VAR NAME="PARAMETER_NAME" VALUE="default value">
5. add TMPL_DEF tag for defining new parameters
<TMPL_DEF NAME="NAME" VALUE="value">
6. add __count__ to loops
<TMPL_VAR NAME="__count__">-th record in the loop.
The patches are available at http://www.math.duke.edu/~yu/Template/
Thanks.
-yu
-------------------------------------------------------
This sf.net email is sponsored by: Jabber - The world's fastest growing
real-time communications platform! Don't just IM. Build it in!
http://www.jabber.com/osdn/xim
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users