src/installer.js
function (options, file, callback) {
  options.logger('Generating template from ' + file)

  async.waterfall([
    async.apply(fs.readFile, file),
    function (template, callback) {
      var result = _.template(template)(options)
      options.logger('Generated template from ' + file + '\n' + result)
      callback(null, result)
    }
  ], callback)
}
function (options, file, callback) {
  options.logger('Generating template from ' + file)

  async.waterfall([
    async.apply(fs.readFile, file),
    function (template, callback) {
      var result = _.template(template)(options)
      options.logger('Generated template from ' + file + '\n' + result)
      callback(null, result)
    }
  ], callback)
}
function ( options , file , callback ) { options . logger ( 'Generating template from ' + file ) async . waterfall ( [ async . apply ( fs . readFile , file ) , function ( template , callback ) { var result = _ . template ( template ) ( options ) options . logger ( 'Generated template from ' + file + '\n' + result ) callback ( null , result ) } ] , callback ) }
Fill in a template with the hash of options.
Fill in a template with the hash of options .