mirror of
https://github.com/middleman/middleman.git
synced 2022-11-09 12:20:27 -05:00
Update support for haml 6 (#2571)
* Update support for haml 6 * remove whitespace
This commit is contained in:
parent
5902a84004
commit
038f4f606f
1 changed files with 4 additions and 2 deletions
|
@ -47,8 +47,10 @@ module Middleman
|
|||
def initialize(app, options_hash = ::Middleman::EMPTY_HASH, &block)
|
||||
super
|
||||
|
||||
::Haml::Options.defaults[:context] = nil
|
||||
::Haml::Options.send :attr_accessor, :context
|
||||
if Object.const_defined?('::Haml::Options') # not available in haml 6
|
||||
::Haml::Options.defaults[:context] = nil
|
||||
::Haml::Options.send :attr_accessor, :context
|
||||
end
|
||||
::Haml::TempleEngine.define_options context: nil if defined?(::Haml::TempleEngine)
|
||||
[::Haml::Filters::Sass, ::Haml::Filters::Scss, ::Haml::Filters::Markdown].each do |f|
|
||||
f.class_exec do
|
||||
|
|
Loading…
Add table
Reference in a new issue