Hi all,
I'm trying to see if there's a cleaner way to do the following in
HAML.
If I were to write this in RHTML, I would enter the following:
<% form_remote_tag
:url => {
:action => 'some_action',
:controller => 'some_controller',
:id => item_id },
:loading => "Toggle.display('someDiv');",
:complete => "Toggle.display('someDiv')" do %>
But the only way (I know of to do it in HAML would be to put it all on
one line:
- form_remote_tag :url => { :action => 'some_action', :controller =>
'some_controller', :id => item_id }, :loading =>
"Toggle.display('someDiv');", :complete => "Toggle.display('someDiv')"
do
which I think looks crowded.
Is there a way to split it across a few 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
-~----------~----~----~----~------~----~------~--~---