I want to convert some haml files (* .html.haml) to xhtml. The haml command says: "Usage: haml [options] [INPUT] [OUTPUT]". So I tried this with the following answer:
Exception on line 1: undefined method `content_for' for #<Object:0xb730af2c>
I noticed that there are different formats that are all called haml. I noticed one that uses angle brackets. Do I need some preprocessing?
Here is an example html.haml file that I want to convert:
- content_for :head do = stylesheet_link_tag 'jquery.autocomplete' = javascript_include_tag 'jquery.autocomplete' - javascript_behaviour '$("input#user_full_name").autocomplete("project_roles/auto_complete_for_user_full_name")'
Note. I know how Google is, so I am looking for specific advice.
source share