lib/middleman-targets/extension.rb in middleman-targets-1.0.7 vs lib/middleman-targets/extension.rb in middleman-targets-1.0.8
- old
+ new
@@ -428,6 +428,21 @@
puts colors[color] + message + colors[:reset]
end
end # say
+ ############################################################
+ # Instance Methods Exposed to Config
+ # @group Instance Methods Exposed to Config
+ ############################################################
+ expose_to_config :middleman_target
+
+
+ #########################################################
+ # Expose the current target to config.rb.
+ #########################################################
+ def middleman_target
+ @app.config[:target]
+ end
+
+
end # class MiddlemanTargets