Re: [htmltmpl] RFC: Objects in templates

2004-06-02 Thread Timm Murray
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, > Ob

Re: [htmltmpl] RFC: Objects in templates

2004-06-02 Thread Cees Hek
Quoting michael <[EMAIL PROTECTED]>: > Since others are in the mood for RFCing, here's something that I was > thinking about implementing for myself and I just wanted to know how > others felt about it as well. This has come up many times on the list. Search the archives for some other opinions

Re: [htmltmpl] RFC: Objects in templates

2004-06-02 Thread Sam Tregar
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 thi

Re: [htmltmpl] RFC: Objects in templates

2004-06-02 Thread Philip Tellis
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->a

Re: [htmltmpl] RFC: Objects in templates

2004-06-02 Thread Timm Murray
I've seen ideas like this suggested many times before, and it should be done. Just needs someone to sit down and write the code :) At 10:29 AM 6/2/04 -0500, michael wrote: Since others are in the mood for RFCing, here's something that I was thinking about implementing for myself and I just wante

[htmltmpl] RFC: Objects in templates

2004-06-02 Thread michael
Since others are in the mood for RFCing, here's something that I was thinking about implementing for myself and I just wanted to know how others felt about it as well. 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