Expose development? and production? helpers to template context. Related #1895

This commit is contained in:
Thomas Reynolds 2016-04-26 09:24:49 -07:00
parent 4918704800
commit cdcd2bd42d
2 changed files with 5 additions and 1 deletions

View file

@ -1,6 +1,10 @@
master
===
# Next
* Expose `development?` and `production?` helpers to template context.
# 4.1.8
* Let collection loops access ConfigContext for helpers. #1879

View file

@ -23,7 +23,7 @@ module Middleman
attr_accessor :current_engine
# 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.
#