Thanks. I will try using helpers more often.


On May 7, 4:17 pm, "Nathan Weizenbaum" <[EMAIL PROTECTED]> wrote:
> There is, but we don't recommend using it. It makes for much cleaner, nicer
> templates if you move anything that would take multiple lines into its own
> well-named helper function.
>
> However, if you absolutely must use multiline functions, just append "|" to
> every line. For example:
>         = render :partial => 'something', |
>                      :locals  => {:x => 1, |
>                                       :y => 2} |
>
> - Nathan
>
> On 5/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi, I recently started using Haml v1.5.2 and am liking it so far. One
> > question that has popped up is if there is a way to break a ruby
> > statement over several lines? An example of what I was hoping for:
>
> >         = render :partial => 'something',
> >                      :locals  => {:x => 1,
> >                                       :y => 2}


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Haml" 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/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to