That looks to be perfectly valid. What version of Haml are you using? Could
it be something in the general template? Does the error still occur when you
use a template with nothing but that line? How about a simpler multiline
template, like
= 1 + |
2 + |
3 |
- Nathan
On 2/26/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> Here is a part of code when i use it :
>
> = render :partial => 'paginator', |
> :locals => { :paginator => @search_products_pages } |
>
> I tried different synthaxes, to put the pipe on the last line or not,
> but i always have kEND type error.
>
> On Feb 26, 8:38 am, Nathan Weizenbaum <[EMAIL PROTECTED]> wrote:
> > Yeah, I just tried it, and it works fine. What's happening when you try?
> > What's the exact code you're using?
> >
> > - Nathan
> >
> > [EMAIL PROTECTED] wrote:
> > > have you tried it? it doesn't work with me ;-5
> >
> > > On Feb 24, 8:34 am, Nathan Weizenbaum <[EMAIL PROTECTED]> wrote:
> >
> > >> The way we suggest doing this is writing a helper. This helps keep
> your
> > >> views clean and simple. However, if you absolutely need to, you can
> > >> write multiple lines by putting the pipe character ("|") at the end
> of
> > >> each part of the line:
> >
> > >> %p
> > >> = text_field :totototottotototot, :size => '30', |
> > >> :title => 'balablablabla', |
> > >> :id => 'totototototototot' |
> > >> Stuff
> >
> > >> is equivalent to
> >
> > >> %p
> > >> = text_field :totototottotototot, :size => '30', :title =>
> > >> 'balablablabla', :id => 'totototototototot'
> > >> Stuff
> >
> > >> Hope that helps.
> >
> > >> - Nathan
> >
> > >> [EMAIL PROTECTED] wrote:
> >
> > >>> Sorry for this newbies question but i didn't find any answer.
> > >>> i have lines looking like this :
> > >>> = text_field :totototottotototot, :size => '30', :title =>
> > >>> 'balablablabla', :id => 'totototototototot' etc....
> > >>> i like when a line has not more than 80 characters.
> > >>> how could i write this line on several lines?
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---