       @roots.config.locals.records[obj.key] = obj.data
 
     ###*
-     * Promises to compile single views for a given collection using a template
-     * and saves to the path given by the out_fn
-     * @param {Array} collection - the collection from which to create single
-     * views
-     * @param {String} template - path to the template to use
-     * @param {Function} out_fn - returns the path to save the output file given
-     * each item
+     * This needs to be gutted and refactored still
     ###
 
     compile_single_views = (collection, template, out_fn) ->

            compiler_options,
            _path: _path
          )).then((res) => @util.write(compiled_file_path, res.result))

    __parse = (response, resolver) ->
      try
        resolver.resolve(JSON.parse(response))
      catch error
        resolver.reject(error)

rest      = require 'rest'
path      = require 'path'
W         = require 'when'
node      = require 'when/node'
_         = require 'lodash'
RootsUtil = require 'roots-util'

