On Sun, Jan 19, 2003 at 10:23:22AM -0800, Peter Scott wrote:
>Now, maybe I'm missing some more obvious way of doing it, and maybe 
>I'll find it when I think a bit more about a workaround, but what I'd 
>like to do right now is put something like
>       <TMPL_VAR NAME="fred" VALUE="flintstone">

Here's a problem with that approach: maybe you don't want the value
displayed at the same point at which you set it?

I wrote an extension wrapper to HTML::Template which adds the <TMPL_SET>
command for this reason; the syntax is much like your version, but it
does not display the variable when it's being set. It's very basic but
gets the job done.

One particular benefit of either of these approaches is that you can
query the value of the variable, defined in the template, from the CGI
script that's doing it.

Roger


-------------------------------------------------------
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to