lib/staticmatic/mixins/render.rb in staticmatic-0.10.0 vs lib/staticmatic/mixins/render.rb in staticmatic-0.10.1
- old
+ new
@@ -91,12 +91,12 @@
# Pass a block containing a string to yield within in the passed source:
#
# 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 }
+ html.render(@scope, options) { yield }
end
def determine_layout(dir = '')
layout_name = "application"
\ No newline at end of file