I have being using parts with great success. What problems are folks having
with it?
I think it is just awesome that parts allow you to stay dry with your views
without breaking the C in MVC. It is really an under-discussed part of Merb
in my opinion.

On Sat, Jan 24, 2009 at 4:27 PM, cult hero <[email protected]> wrote:

>
> I don't know why I thought working with partials and helpers would be
> difficult. There was some kind of mental block there or something!
>
> Anyway, helpers + partials does the trick beautifully.
>
> On Jan 24, 4:03 pm, Jacques Crocker <[email protected]> wrote:
> > To call a partial in Merb is a method called "partial". Here's the api
> > docs for it:
> http://docsbeta.merbivore.com/klasses/Merb::Controller#M000099
> >
> > It's similar to render :partial in Rails, exception you can pass
> > locals directly to it (instead of putting them in a :locals hash).
> >
> > On Jan 24, 3:56 pm, cult hero <[email protected]> wrote:
> >
> > > Is there a place to see the syntax and layout of a partial? Will the
> > > Rails documentation work? I have no idea how to even use a partial,
> > > but my googling lead me in that direction.
> >
> > > Ha. Dunno how to use a helper either. At least I know where to start.
> >
> > > On Jan 24, 3:50 pm, Phlip <[email protected]> wrote:
> >
> > > > cult hero wrote:
> > > > > Will partials do the trick? (I have yet to find a decent example of
> > > > > how to use them.) Or is there some other method. I believe Django
> used
> > > > > something they called a context for stuff like that.
> >
> > > > How about a partial that uses its own controller, not its page's
> controller?
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to