[Solar-talk] config inheritance in helpers
Rodrigo Moraes
rodrigo.moraes at gmail.com
Mon Jul 31 07:43:35 PDT 2006
On 7/31/06, Paul M Jones wrote:
> For future reference, the "standard" when using an adapter is, if you
> need to pass configs to the adapter, you use a key of 'config'. E.g.:
ok, thanks.
> I think you've said something like this in the past few days, but:
> if there's a way to do this with either adapters or decorators (not
> both) then that would be better.
agreed. as you said, let's wait and see. as we need some reusable
widgets, and effectivelly use them, and refactor them a lot ;-), we'll
figure out a way to 'formalize' the use of partials, adapters and
decorators inside helpers, more or less like in rails [1]. the pager
helper could use partials instead of decorators, and i'm not happy
with the pager set design, but it is working for me now.
i feel that in the future helpers will need to be grouped in some way,
but also that I'm trying to force the need of something. so, in the
'getting real' spirit, i will just use the pager set for a while, make
some more helper sets, use them, refactor, refactor, and see what will
result from this.
thanks for your patience. :-)
rodrigo
[1] http://blogrium.com/?p=60
More information about the solar-talk
mailing list