src/prepare/partials.js
function preparePartials(options) {
  return Promise.all([
    registerPartials(options.src.templates, options), // Partials as partials
    registerPartials(options.src.patterns, options, 'patterns') // Patterns
  ]).then(() => options, error => DrizzleError.error(error, options.debug));
}
function preparePartials(options) {
  return Promise.all([
    registerPartials(options.src.templates, options), // Partials as partials
    registerPartials(options.src.patterns, options, 'patterns') // Patterns
  ]).then(() => options, error => DrizzleError.error(error, options.debug));
}
function preparePartials ( options ) { return Promise . all ( [ registerPartials ( options . src . templates , options ) , // Partials as partials registerPartials ( options . src . patterns , options , 'patterns' ) // Patterns ] ) . then ( ( ) => options , error => DrizzleError . error ( error , options . debug ) ) ; }
Register a glob of partials.
@param {Object} Handlebars instance
@param {String|Array} glob
Register a glob of partials .