[Catalyst] Program the logic

Nilson Santos Figueiredo Junior acid06 at gmail.com
Fri Jun 30 00:05:03 CEST 2006


On 6/29/06, Matt S Trout <dbix-class at trout.me.uk> wrote:
> Nilson Santos Figueiredo Junior wrote:
> > That involves doing bad things such as using c.param() from the View
> > but it really was the only practical way (i.e. DRY) I could think of.
> > So, any suggestions are welcome. ;-)
>
> No, it's the best separation of concerns, I think. The trick is to make the
> View smarter, which is a hard problem for webapps because of the degree of
> flexibility in styling required (ASP.Net has great shiny components, but any
> ASP.Net app looks like an ASP.Net app). Encapsulating the c.param bits in a TT
> plugin or three might be a good halfway measure.

I couldn't really get the point of your ASP.Net analogy nor could I
imagine how to encapsulate c.param() bits in some TT plugins (well,
actually, I could think of aliasing c.param() to param() but this
probably wasn't what you meant). So, could you please elaborate on
this?

-Nilson Santos F. Jr.



More information about the Catalyst mailing list