 
     _.extend @, defaults, options
 
-  ###*
-   * loop through all the templates specified, compile them, and add a wrapper
-   * @return {String} the source of a JS object which holds all the templates
-   * @public
-  ###
+  
+  # loop through all the templates specified, compile them, and add a wrapper
+  # @return {String} the source of a JS object which holds all the templates
+  # @public
+  
   compile: ->
     buf = ["""
     (function(){

  buf = precompiler.compile()
  buf = compressor buf, 'js'

  # TODO: make output folder dynamic
  output_path = path.normalize('public/js/templates.js')
  mkdirp.sync path.dirname(output_path)
  fs.writeFileSync output_path, buf


class Precompiler
  ###*
   * deals with setting up the variables for options
   * @param {Object} options = {} an object holding all the options to be
     passed to the compiler. 'templates' must be specified.
   * @constructor
  ###
  constructor: (options = {}) ->
    defaults =
      include_helpers: true

mkdirp = require "mkdirp"
compressor = require './utils/compressor'

# compile jade templates into JS functions for use on the client-side, and
# save it to a specified file

module.exports = ->
  global.options.debug.log 'precompiling templates', 'yellow'
  return false if not global.options.templates?
