Expose development? and production? helpers to template context. Related #1895
This commit is contained in:
parent
4918704800
commit
cdcd2bd42d
2 changed files with 5 additions and 1 deletions
|
@ -1,6 +1,10 @@
|
||||||
master
|
master
|
||||||
===
|
===
|
||||||
|
|
||||||
|
# Next
|
||||||
|
|
||||||
|
* Expose `development?` and `production?` helpers to template context.
|
||||||
|
|
||||||
# 4.1.8
|
# 4.1.8
|
||||||
|
|
||||||
* Let collection loops access ConfigContext for helpers. #1879
|
* Let collection loops access ConfigContext for helpers. #1879
|
||||||
|
|
|
@ -23,7 +23,7 @@ module Middleman
|
||||||
attr_accessor :current_engine
|
attr_accessor :current_engine
|
||||||
|
|
||||||
# Shorthand references to global values on the app instance.
|
# Shorthand references to global values on the app instance.
|
||||||
def_delegators :@app, :config, :logger, :sitemap, :server?, :build?, :environment?, :environment, :data, :extensions, :root
|
def_delegators :@app, :config, :logger, :sitemap, :server?, :build?, :environment?, :environment, :data, :extensions, :root, :development?, :production?
|
||||||
|
|
||||||
# Initialize a context with the current app and predefined locals and options hashes.
|
# Initialize a context with the current app and predefined locals and options hashes.
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue