Index: website/src/pages/how_to_use.haml =================================================================== --- website/src/pages/how_to_use.haml (revision 84) +++ website/src/pages/how_to_use.haml (working copy) @@ -86,6 +86,20 @@ = link 'Sass', 'http://haml.hamptoncatlin.com/docs/sass' can take like :style => :compact +%h3 configuration.haml_options + +%p + Default is an empty hash. You can specify any options that + = link 'Haml', 'http://haml.hamptoncatlin.com/docs/haml' + can take like: + +.code :attr_wrapper => '"' + +%p + (have Haml use double quotes instead of single quotes for + wrapping HTML attribute values) + + %h2{:id => 'templates'} Templates %p Index: lib/staticmatic/configuration.rb =================================================================== --- lib/staticmatic/configuration.rb (revision 84) +++ lib/staticmatic/configuration.rb (working copy) @@ -6,11 +6,13 @@ attr_accessor :use_extensions_for_page_links attr_accessor :sass_options + attr_accessor :haml_options def initialize self.preview_server_port = 3000 self.use_extensions_for_page_links = true self.sass_options = {} + self.haml_options = {} end end end \ No newline at end of file Index: lib/staticmatic/base.rb =================================================================== --- lib/staticmatic/base.rb (revision 84) +++ lib/staticmatic/base.rb (working copy) @@ -212,7 +212,7 @@ # generate_html_from_template_source("content:\n= yield") { "blah" } -> "content: blah" # def generate_html_from_template_source(source, options = {}) - html = Haml::Engine.new(source, options) + html = Haml::Engine.new(source, self.configuration.haml_options.merge(options)) html.render(@scope) { yield } end