blog compat
This commit is contained in:
parent
ee4c68b03c
commit
ef0b996004
|
@ -11,7 +11,7 @@ module Middleman::Cli
|
||||||
desc 'build [options]', 'Builds the static site for deployment'
|
desc 'build [options]', 'Builds the static site for deployment'
|
||||||
method_option :environment,
|
method_option :environment,
|
||||||
aliases: '-e',
|
aliases: '-e',
|
||||||
default: ENV['MM_ENV'] || ENV['RACK_ENV'] || 'development',
|
default: ENV['MM_ENV'] || ENV['RACK_ENV'] || 'production',
|
||||||
desc: 'The environment Middleman will run under'
|
desc: 'The environment Middleman will run under'
|
||||||
method_option :clean,
|
method_option :clean,
|
||||||
type: :boolean,
|
type: :boolean,
|
||||||
|
|
2
middleman-cli/lib/middleman-core/cli.rb
Normal file
2
middleman-cli/lib/middleman-core/cli.rb
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
# Backwards compat
|
||||||
|
require 'middleman-cli'
|
|
@ -256,11 +256,11 @@ module Middleman
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@extensions.activate_all
|
||||||
|
|
||||||
run_hook :after_configuration
|
run_hook :after_configuration
|
||||||
config_context.execute_after_configuration_callbacks
|
config_context.execute_after_configuration_callbacks
|
||||||
|
|
||||||
@extensions.activate_all
|
|
||||||
|
|
||||||
run_hook :ready
|
run_hook :ready
|
||||||
@config_context.execute_ready_callbacks
|
@config_context.execute_ready_callbacks
|
||||||
end
|
end
|
||||||
|
|
|
@ -39,7 +39,11 @@ module Middleman
|
||||||
|
|
||||||
def evaluate(scope, _)
|
def evaluate(scope, _)
|
||||||
@output ||= begin
|
@output ||= begin
|
||||||
|
if defined?(::Middleman::Renderers::Haml)
|
||||||
MiddlemanRedcarpetHTML.scope = ::Middleman::Renderers::Haml.last_haml_scope || scope
|
MiddlemanRedcarpetHTML.scope = ::Middleman::Renderers::Haml.last_haml_scope || scope
|
||||||
|
else
|
||||||
|
MiddlemanRedcarpetHTML.scope = scope
|
||||||
|
end
|
||||||
|
|
||||||
@engine.render(data)
|
@engine.render(data)
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
module Middleman
|
module Middleman
|
||||||
# Current Version
|
# Current Version
|
||||||
# @return [String]
|
# @return [String]
|
||||||
VERSION = '4.0.0.alpha.3' unless const_defined?(:VERSION)
|
VERSION = '4.0.0.alpha.4' unless const_defined?(:VERSION)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue