I'm a bit confused about the deprecated block helpers in haml3. I get
this warning:
DEPRECATION WARNING: - style block helpers are deprecated. Please use
=.
When I go to use "=" instead of "-" I can't get it to work the way I
expect. It seems to always output the return value of the block once
it completes.
Here's an example:
statuses = ['foo','bar']
= statuses.each do |status|
= status
This will output "foo bar foobar" whereas it will properly output "foo
bar" when using the "deprecated" style. Can someone explain this new
block helper format?
Thanks!
--
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.