Greetings Haml users,
I tried to write a simple helper method that will use a block to put haml
content inside.
The divs are a little bit more compilcated, but what it does is this :
def round_corner
"<div class='top_rc'>#{yield}</div class='bottom_rc'>"
end
And the Haml code to go with it:
= round_corner
%span Some text
Any idea why it would throw an error and not work?
(using haml stable)
Regards,
- evgeny
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---