Top "Haml" questions

HAML is a markup language that’s used to cleanly and simply describe the HTML of any web document without the use of inline code.

render a partial from jquery and haml

The functionality I plan on doing is to insert some form elements depending on a number chosen from a select …

jquery ruby-on-rails haml renderpartial
Ruby best practice : if not empty each do else in one operator

1.I can't find an elegant way to write this code: if array.empty? # process empty array else array.each do |…

ruby operators haml
Producing single-line comments with HAML?

I'm trying to generate a comment on a single line at the end of an HTML file: <!-- generated …

ruby-on-rails ruby haml
Dynamic class name in HAML

Is there a better way to convert the following to HAML? <% flash.each do |key, value| %> <div …

haml erb
inserting blocks of text in haml

In my Jekyll blog I use the include tag to put the contents of a file into the document. However …

ruby syntax haml markup jekyll
Empty attribute with Ruby HAML

I'm implementing Schema microformats on a Ruby project using HAML and can't figure out how to set an empty attribute …

ruby-on-rails ruby haml
Error 'incompatible character encodings: ASCII-8BIT and UTF-8' due to 8-bit encoding of cookies (Rails 3 and Ruby 1.9)

I moved a web app that was using 1.8.7 to 1.9.2 and now I keep getting incompatible character encodings: ASCII-8BIT and …

ruby-on-rails ruby ruby-on-rails-3 haml ruby-1.9
Haml render multiple partials in layout

How can I make the code indent correctly? app/views/layouts/shared.html.haml: = render :partial => "shared/head" = yield = …

html ruby-on-rails-3 haml partial partials
How can I auto compile my HAML files into HTML files in a tiny project that doesn't run on RoR?

I have only today started playing with compass and haml. While I am quite familiar with the way sass works …

compilation project haml watch compass-sass
How do I wrap multiline Ruby arguments in HAML?

How can I use multiple lines for a single Ruby statement in HAML? For example, I'd like to write something …

ruby haml word-wrap