Using Haml with Merb / Edits
Edited line 30 :
Testing
Rspec view tests might not work because Haml uses single quotes by default. To instruct Haml to use double quotes add the following to Merb::Config in config/init.rb:
c[:haml] = { :attr_wrapper => '"' }
Edited line 8 :
Edited line 23 :
Coming from rails
h2. Coming from rails
Edited line 21 :
h2. Coming from rails
If your sass templates doesn’t compile automatic in your app, just run
rake haml:compile_sass
Edited line 22 :
http://toolmantim.com/article/2008/4/17/haml_merb_helpers_very_noice
Edited line 4 :
Blog Posts
Blog Posts
Edited line 7 :
Edited line 3 :
Blog Posts
Edited line 13 :
http://toolmantim.com/article/2008/4/17/haml_merb_helpers_very_noice
Edited line 10 :
%p= select_control(:teacher, :label => "Teacher", :collection => @teachers)
%p= select_control(:teacher,
:label => "Teacher",
:collection => @teachers)