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