KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How can I use multiple lines for a single Ruby statement in HAML? For example, I'd like to write something like the following: - entries = [{ - :title => "The Fellowship of the Ring", - :body => "We should walk instead of fly" - }] !!! 5 %html %head %title Blog %body #content - entries.each do |entry| .entry %h3.title= entry[:title] %p.body= entry[:body] But of course the first four lines produce a syntax error.
Tags (comma-separated)
Save Edits
Cancel