# File lib/staticmatic/mixins/render.rb, line 109 def generate_html_from_template_source(source, options = {}) html = Haml::Engine.new(source, self.configuration.haml_options.merge(options)) locals = options[:locals] || {} html.render(@scope, locals) { yield } end