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.

HAML - parameter with dash

How can I convert this line <body data-spy="abcd"> to HAML syntax? This one returns me an error %…

html haml
Partials in Coffee HAML (.hamlc)

I am using backbone.js on a rails backend with HAML Coffee, which is compiled by haml_coffee_assets. There …

ruby-on-rails backbone.js coffeescript haml jst
"[ !IE]" conditional comments in Haml

In a HAML doc, I have: /[if IE] This is IE /[if !IE] This is not IE The first conditional …

internet-explorer conditional haml
How can I conditionally wrap some HAML content in a tag?

How can I use a condition to decide whether to output a surrounding tag in HAML? I'm trying to create …

html haml
Rails/HAML: Line breaks in text mail

I'm just trying to format a haml-generated (text) mailer template, and I'm having a little difficulty getting it to read …

ruby-on-rails haml actionmailer
How to pass an argument when calling a view file?

I wrote a webform using Sinatra and Haml that will be used to call a Ruby script. Everything seems fine …

ruby sinatra haml
HAML: remove white space after "link_to"

The following code leaves a white space in HTML: = link_to "Login", "#" Normally, HAML allows to remove it by putting "&…

ruby-on-rails haml
HAML on Rails 3 returning "Template is missing" error

I have tried to render some files with HAML in Rails 3 without success. My testfiles have the extension .html.haml. …

ruby-on-rails haml
HAML Having Multiple Lines While Using content_for, for JavaScript

I am trying to output some inline js on a page. I don't really want to add it to any …

javascript ruby-on-rails haml content-for
Formatting populated textarea, carriage returns, newlines, and HAML

When i populate a textarea with text using \r\n (carriage return - newline) the text is formatted improperly [UPDATE: \…

ruby-on-rails textarea newline haml carriage-return