     
 # Template
 module.exports.template = (filepath, data) ->
+    debug "templating #{filepath}"
+    debug "template data: \n#{data}"
     template = read filepath
     mustache.render template, data    
 

mustache = require 'mustache'
_ = require 'lodash'
majorfile = require('./majorfile')()

# === Helpers ===


    fs.mkdirSync filepath
    
# Log
module.exports.log = log

module.exports.debug = debug

module.exports.debugMode = (value) ->
    debugMode = value