 module.exports.templateParsers = templateParsers =
   
   '.jade': (contents, filename) ->
-    jade.compile(contents, { client: true, compileDebug: true })
+    require('jade').compile(contents, { client: true, compileDebug: true })
 
   '.mustache': (contents, filename) ->
-    'new Hogan.Template(' + hogan.compile(contents, { asString: true }) + ')'
+    'new Hogan.Template(' + require('hogan').compile(contents, { asString: true }) + ')'
 
 # Generates javascript template functions packed into a JST namespace
 # 

      throw err
    
  '.styl': (contents, filename) ->
    styl(contents)
      .set('filename', process.cwd() + '/' + filename)
      .use(nib())
      .render (err, out) ->
        throw(err) if err
        contents = out

path = require 'path'
exec = require('child_process').exec
coffee = require 'coffee-script'
jadeRuntime = fs.readFileSync(path.resolve __dirname, '../deps/jade.runtime.js').toString()
hoganPrefix = fs.readFileSync(path.resolve __dirname, '../deps/hogan.js').toString()
sqwish = require 'sqwish'
uglifyjs = require "uglify-js"
