class Middleman::Renderers::Slim
Slim renderer
def initialize(_app, _options={}, &_block)
def initialize(_app, _options={}, &_block) super # Setup Slim options to work with partials ::Slim::Engine.disable_option_validator! ::Slim::Engine.set_options( buffer: '@_out_buf', use_html_safe: true, disable_escape: true ) begin require "action_view" rescue LoadError # Don't add generator option if action_view is not available, since it depends on it else ::Slim::Engine.set_options( generator: ::Temple::Generators::RailsOutputBuffer, ) end end