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.

incompatible character encodings: ASCII-8BIT and UTF-8

I use Ruby 1.9.2 and Rails 3.0.5 I have the following error: incompatible character encodings: ASCII-8BIT and UTF-8 It has nothing …

ruby-on-rails ruby ruby-on-rails-3 haml
How do I include inline JavaScript in Haml?

How can I write something like this to include in a template, but in Haml? <script> $(document).ready( …

javascript jquery haml
Sass Background Image mixin

I'm kind of new to Sass, but I'm attempting to create a workflow for myself. I generate "color packs" for …

css haml sass compass-sass
How to set inline style for element in HAML

Here is my code: <div class='some' style='position: absolute; left: 300; top: 300;'>..</div> It parses …

ruby-on-rails-3 haml
Append class if condition is true in Haml

If post.published? .post / Post stuff Otherwise .post.gray / Post stuff I've implemented this with rails helper and it seems …

ruby haml
How to write if-condition in Haml?

How to write if and if-else statements in Haml for a Ruby on Rails application?

ruby-on-rails haml
How do I get Haml to work with Rails?

I am trying to get Haml to work with my Ruby on Rails project. I am new to Ruby on …

ruby-on-rails ruby netbeans haml
Ruby methods within Javascript within HAML

I have a jQuery script that adds a new field to a form, and this field contains dynamic information from …

javascript jquery ruby haml
Injecting variable values into javascript and HAML in RoR

I have the following function for using ZenDesk. I'd like to inject my current_user details into the form as …

javascript ruby-on-rails haml
erb, haml or slim: which one do you suggest? And why?

I am learning Rails and I have seen these template engines. I have no experience with them (only erb). But …

ruby-on-rails haml erb slim-lang