On Fri, Mar 16, 2007 at 03:07:57PM -0400, C Hagstrom wrote:
>I'm not that savvy of an HTML::Template user .... and I thought
>that variables were typically available for use in included templates without
>the use of "::Set".... maybe I'm missing something?  Or maybe I'm just
>flat out wrong?

I don't think the DEFAULT= parameter to TMPL_VAR was available when I
wrote ::Set. In any case, to set a variable and not output it
immediately, one would have to wrap the statement:

<TMPL_IF NAME=never><TMPL_VAR NAME=title DEFAULT=Page Title></TMPL_IF>

which seems a lot more trouble than

<TMPL_SET NAME=title VALUE=Page title>

Also, if you set a value with DEFAULT=, you can't query it
programmatically via $template->param().

R

-------------------------------------------------------------------------
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
Html-template-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to