Here we go
This commit is contained in:
parent
5591c3337b
commit
9454536b12
|
@ -405,7 +405,7 @@ module Middleman
|
||||||
elsif g.is_a? Symbol
|
elsif g.is_a? Symbol
|
||||||
definition = method(g)
|
definition = method(g)
|
||||||
|
|
||||||
if definition.arity === 0
|
if definition.arity == 0
|
||||||
send(g)
|
send(g)
|
||||||
else
|
else
|
||||||
send(g, resources)
|
send(g, resources)
|
||||||
|
@ -421,7 +421,7 @@ module Middleman
|
||||||
if g.is_a? Symbol
|
if g.is_a? Symbol
|
||||||
definition = method(g)
|
definition = method(g)
|
||||||
|
|
||||||
g = if definition.arity === 0
|
g = if definition.arity == 0
|
||||||
send(g)
|
send(g)
|
||||||
else
|
else
|
||||||
send(g, resources)
|
send(g, resources)
|
||||||
|
|
|
@ -54,7 +54,6 @@ module Middleman
|
||||||
|
|
||||||
context.init_haml_helpers if context.respond_to?(:init_haml_helpers)
|
context.init_haml_helpers if context.respond_to?(:init_haml_helpers)
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -6,7 +6,7 @@ module Middleman
|
||||||
class KramdownTemplate < ::Tilt::KramdownTemplate
|
class KramdownTemplate < ::Tilt::KramdownTemplate
|
||||||
def evaluate(scope, *)
|
def evaluate(scope, *)
|
||||||
@output ||= begin
|
@output ||= begin
|
||||||
MiddlemanKramdownHTML.scope = ::Middleman::Renderers::Haml.last_haml_scope || scope
|
MiddlemanKramdownHTML.scope = (defined?(::Middleman::Renderers::Haml) && ::Middleman::Renderers::Haml.last_haml_scope) ? ::Middleman::Renderers::Haml.last_haml_scope : scope
|
||||||
|
|
||||||
output, warnings = MiddlemanKramdownHTML.convert(@engine.root, @engine.options)
|
output, warnings = MiddlemanKramdownHTML.convert(@engine.root, @engine.options)
|
||||||
@engine.warnings.concat(warnings)
|
@engine.warnings.concat(warnings)
|
||||||
|
|
|
@ -7,7 +7,6 @@ module Middleman
|
||||||
# Manages the list of proxy configurations and manipulates the sitemap
|
# Manages the list of proxy configurations and manipulates the sitemap
|
||||||
# to include new resources based on those configurations
|
# to include new resources based on those configurations
|
||||||
class Redirects < Extension
|
class Redirects < Extension
|
||||||
|
|
||||||
# Expose `create_redirect` to config as `redirect`
|
# Expose `create_redirect` to config as `redirect`
|
||||||
expose_to_config redirect: :create_redirect
|
expose_to_config redirect: :create_redirect
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,6 @@ module Middleman
|
||||||
module Sitemap
|
module Sitemap
|
||||||
module Extensions
|
module Extensions
|
||||||
class RequestEndpoints < Extension
|
class RequestEndpoints < Extension
|
||||||
|
|
||||||
# Expose `create_endpoint` to config as `endpoint`
|
# Expose `create_endpoint` to config as `endpoint`
|
||||||
expose_to_config endpoint: :create_endpoint
|
expose_to_config endpoint: :create_endpoint
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue