Permalink
Browse files

Expose some api on environment

  • Loading branch information...
1 parent 8ea4fef commit f69dc037ca6259f9b4fe9860d701a0316c3a689a @jnordberg committed Mar 21, 2013
Showing with 9 additions and 2 deletions.
  1. +9 −2 src/core/environment.coffee
@@ -4,17 +4,24 @@ path = require 'path'
async = require 'async'
fs = require 'fs'
+utils = require './utils'
+
{Config} = require './config'
-{ContentTree} = require './content'
-{readJSON} = require './utils'
+{ContentPlugin, ContentTree} = require './content'
{render} = require './renderer'
{loadTemplates} = require './templates'
{buildGraph} = require './graph'
{logger} = require './logger'
+{readJSON} = utils
+
class Environment
### The Wintersmith environment. ###
+ utils: utils
+ ContentTree: ContentTree
+ ContentPlugin: ContentPlugin
+
constructor: (@config, @workDir, @logger) ->
@views = {}
@generators = []

0 comments on commit f69dc03

Please sign in to comment.