 
   # Config defaults
   @publicDir = options.publicDir ? '/public'
+  @uglify = options.uglify ? true
   @mode = options.mode ? switch process.env.NODE_ENV
     when 'staging' then 'production'
     when 'production' then 'production'

    parser = _.find parsers, (parser) ->
      _.endsWith filename, parser

    contents = if fileHasChanged(fullPath) and parser? or 
               not  @_preprocessedCache[filename]?
                 data = fs.readFileSync(fullPath).toString()
                 @_preprocessedCache[filename] = templateParsers[parser](data, filename).toString()
                 @_preprocessedCache[filename]
               else
                 @_preprocessedCache[filename]
    
    # Templates in a 'templates' folder are namespaced by folder after 'templates'
    if filename.indexOf('templates') > -1
      namespace = filename.split('templates')[-1..][0].replace /^\/|\..*/g, ''
    else
      namespace = filename.split('/')[-1..][0].replace /^\/|\..*/g, ''
    
    tmplFileContents += "JST['#{namespace}'] = #{contents};\n"
  
  tmplFileContents

# Determine whether a file has changed since last preprocess or template parse
# 
# @param {String} filename
# @return {Boolean}



    when '.js'
      res.setHeader?("Content-Type", "application/javascript")

      if req.url.match /\.jst\.js$/
        pkg = path.basename req.url, '.jst.js'
        res.end generateJSTs pkg
