Thanks to Sam and this list's ideas and discussions, I rewrote most of the
patches and it's optimized to be about as fast as the original
HTML::Template module. Please see the URL
http://www.math.duke.edu/~yu/Template/ for the latest changes and patches.
1. The notation for accessing outside variables was changed from "__name"
to "::name", which adds no more restrictions on the names that you can
use, at least according to the FAQ.
2. Extensive checks are done to eval()'ed expressions to make sure they
are secure.
3. An example use of TMPL_DEF:
<TMPL_DEF NAME="SQLCMD" VALUE="select * from News where Date=Now() and
Source <> 'XYZ'">
<TMPL_DEF NAME="SQLREC" VALUE="news">
......Today's Headlines:
<TMPL_LOOP NAME="news">
<li><TMPL_VAR NAME="Source">: <TMPL_VAR NAME="Title">.......
</TMPL_LOOP>
The perl script queries the SQL command, runs it and stuffs the records
into the given variable. It's not easier to do this with TMPL_INCLUDE or
query() alone. Imagine that you have 1 webmaster, 2 programmers, 3 DBAs,
40 designers and 5000 clients who all want different data...
Well, it's time for me to move on to other projects. But I'll maintain the
URL as long as I see any bugs or good ideas.
Thanks.
-yu
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users