At 10:26 PM 6/2/04 +0530, Philip Tellis wrote:
Sometime Today, michael assembled some asciibets to say:

> I was wanting to use Class::DBI to Model my data and H::T to View it.
> When I do this I end up with a lot of code that looks like this
>
> $tmpl->param(
>      ObjAtt1 => $obj->att1,
>      ObjAtt2 => $obj->att2,
>      ObjAtt3 => $obj->att3,
>      ObjAtt4 => $obj->att4,
>      ObjAtt5 => $obj->att5,
>       );

Just implement the param() method and include your object in the
associate list to new.  Simple as that.
<>

That doesn't solve things on the template end:

<TMPL_VAR obj.attr1>

Which gets into how to define a more structured namespace convention than the flat one currently used by HTML::Template.



-------------------------------------------------------
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

Reply via email to