Re: [Mason] DRY principle and Edit/Create forms

2008-02-05 Thread Otto Hirr
> On Tuesday, February 05, 2008, Dave Rolsky wrote: > On Tue, 5 Feb 2008, Jeremy Blain wrote: > > I use HTML::FillInForm in a filter block for this, works great. > Me too, though I use a comp-call-with-content: ><&| /lib/fill-in-fill.mas, form_data => \%data &> > > > Since Mason h

Re: [Mason] DRY principle and Edit/Create forms

2008-02-05 Thread Dave Rolsky
On Tue, 5 Feb 2008, Jeremy Blain wrote: > I use HTML::FillInForm in a filter block for this, works great. Me too, though I use a comp-call-with-content: <&| /lib/fill-in-fill.mas, form_data => \%data &> Actually, my fill in system is a little smarter, in that it can accept obje

Re: [Mason] DRY principle and Edit/Create forms

2008-02-05 Thread Jeremy Blain
I use HTML::FillInForm in a filter block for this, works great. Anthony Ettinger wrote: >I want to re-use a form partial for both edit and create views on an >object...what is the best way to allow the form to be populated if >data exists. > >I currently am doing like this for every input field:

[Mason] DRY principle and Edit/Create forms

2008-02-05 Thread Anthony Ettinger
I want to re-use a form partial for both edit and create views on an object...what is the best way to allow the form to be populated if data exists. I currently am doing like this for every input field: <% $message ? $message : '' %> -- Anthony Ettinger 408-656-2473 http://anthony.ettinger.name