lib/haml-rails.rb in haml-rails-0.1 vs lib/haml-rails.rb in haml-rails-0.2
- old
+ new
@@ -1,7 +1,14 @@
+require 'haml'
+
module Haml
module Rails
class Railtie < ::Rails::Railtie
config.generators.template_engine :haml
+
+ config.before_initialize do
+ Haml.init_rails(binding)
+ Haml::Template.options[:format] = :html5
+ end
end
end
end