src/write/collections.js
function writeCollections(drizzleData) {
  return Promise.all(walkCollections(drizzleData.patterns, drizzleData)).then(
    writePromises => drizzleData,
    error => DrizzleError.error(error, drizzleData.options.debug)
  );
}
function writeCollections(drizzleData) {
  return Promise.all(walkCollections(drizzleData.patterns, drizzleData)).then(
    writePromises => drizzleData,
    error => DrizzleError.error(error, drizzleData.options.debug)
  );
}
function writeCollections ( drizzleData ) { return Promise . all ( walkCollections ( drizzleData . patterns , drizzleData ) ) . then ( writePromises => drizzleData , error => DrizzleError . error ( error , drizzleData . options . debug ) ) ; }
Traverse the patterns object and write out collections HTML pages.

@param {Object} drizzleData
@return {Promise} resolving to {Object} drizzleData
Traverse the patterns object and write out collections HTML pages .