module Middleman::Renderers::Slim
def registered(app)
def registered(app) app.before_configuration do template_extensions slim: :html end # Setup Slim options to work with partials ::Slim::Engine.set_default_options( buffer: '@_out_buf', use_html_safe: true, generator: ::Temple::Generators::RailsOutputBuffer, disable_escape: true ) app.after_configuration do context_hack = { context: self } ::Slim::Embedded::SassEngine.disable_option_validator! %w(sass scss markdown).each do |engine| ::Slim::Embedded.default_options[engine.to_sym] = context_hack end end end