On Wed, 28 May 2003, Cory Trese wrote: > >From my tests, it seems as if the call to "param( 'doc' );" does not return > the value of a TMPL_VAR's "default" attribute.
That's the intended behavior. If it worked differently you wouldn't be able to tell the difference between a parameter already set and a parameter with a default. For some applications the difference is signficant. Also, being able to read the default value back from the template would certainly be abused as a mechanism to allow the template to pass data back into Perl, which is contrary to the philosophy of HTML::Template. However, that said, I should probably mention this in the param() documentation. -sam ------------------------------------------------------- This SF.net email is sponsored by: eBay Get office equipment for less on eBay! http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 _______________________________________________ Html-template-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/html-template-users
