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.

inline tag in haml

In html, you can do something like this <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent …

haml
Create a local variable in Haml only

I'm using Haml as a quick way of prototyping layouts. This is not using Rails, Sinatra or any framework. What …

haml
haml by default

Is there a way to configure rails to use haml by default, i.e. when a scaffold is generated the …

ruby-on-rails haml ruby-on-rails-3.2
How to structure a layout template in Haml

I have a web page that uses Haml for layouts. "layout.haml" is a separate layout file which is used …

ruby haml
Short way to include CSS and javascript tags with HAML

When including javascript or CSS in HAML you would normally have to do the following to include CSS: %link{:type =&…

ruby haml
How to send back js.haml in rails

I have a rails create action which send back some jquery in a file: create.js.erb var appearance = $("<%= …

jquery ruby-on-rails haml
A html string is escaped in haml file

#test - html = "<a href='http://www.a.com'>Test</a>" = html The output is <…

ruby-on-rails haml
How do I put a link in the middle of a paragraph with HAML?

How do I create this: <p> I would like to make a <a href="foo.html">…

html ruby-on-rails haml
How to generate Haml views instead of erb

I'm building an app with Rails 2.3.4 and using script/generate controller home index to generate a controller and home page. …

haml
HAML: form_tag dilemma (indentation?)

I'm making "user settings form", and stuck with HAML: = form_tag('/') - [1,2,3].each do |i| = check_box_tag "…

ruby-on-rails haml