Fix some bugs in the Slim renderer when converting to Extensions

This commit is contained in:
Thomas Reynolds 2014-07-10 13:30:16 -07:00
parent 215ddad660
commit 840c927ac0

View file

@ -21,6 +21,8 @@ module Middleman
class Slim < ::Middleman::Extension class Slim < ::Middleman::Extension
# Setup extension # Setup extension
def initialize(_app, _options={}, &_block) def initialize(_app, _options={}, &_block)
super
# Setup Slim options to work with partials # Setup Slim options to work with partials
::Slim::Engine.set_default_options( ::Slim::Engine.set_default_options(
buffer: '@_out_buf', buffer: '@_out_buf',
@ -32,7 +34,7 @@ module Middleman
def after_configuration def after_configuration
context_hack = { context_hack = {
context: app.template_context_class.new(self) context: app.template_context_class.new(app)
} }
::Slim::Embedded::SassEngine.disable_option_validator! ::Slim::Embedded::SassEngine.disable_option_validator!