Guys,
I had an irc chat yesterday with nex3 regarding multi-line erb
filters. It appears the erb filter requires you to have all of your
erb statement on the same line. So if you had something like:
:erb
<%= my_method_call(a,
b,
c,
d)
%>
It won't work. It expects it to be:
:erb
<%= my_method_call(a,b,c,d) %>
This is a contrived example. I often have a pretty hefty set of
parameters to a method, and formatting the call on multiple lines make
it much clearer.
Now, it happens that the :ruby filter does support multi-line
statements. So, in the above case, I'm able to do:
:ruby
puts my_method_call(a,
b,
c,
d)
This is a workable solution, but in my mind the cleaner thing would be
to support multi-line erb statements. I'd like to pitch in and add
support for this, but I have to imagine there's a reason for why it
works the way it works today. Is there something implicit with the erb
functionality that makes supporting multi-line difficult to do?
Thanks!
John
--
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.