On Wed, 2 Jun 2004, michael wrote: > And then the accompanying tmpl_vars in the templates. I was thinking about > using something similar to the way Template Toolkit handles it where I can > just specify an object and then have H::T pull the attributes (or methods) as > needed. Something like this... > > $tmpl->param(Obj => $obj); > > and then in the template have > > <tmpl_var name="Obj->att1"> <tmpl_var name="Obj->att2">... etc
I think it would be really easy to do this kind of thing in a sub-class. Just override param() to look for objects and turn them into a set of "obj->attr" params. I wouldn't use it but I bet some people would. -sam ------------------------------------------------------- This SF.Net email is sponsored by the new InstallShield X. >From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 _______________________________________________ Html-template-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/html-template-users