Create a template object from a template of the assets folder. Use the type to determine which template must be selected.
function createTemplate (type, destination) {
  const templatePath = getTemplatePath(assets, type)

  if (!templatePath) {
    throw new Error('Missing template! Make sure your presskit has a "type" field (product/company)')
  }

  registerPartials(assets)
  registerHelpers(destination)

  const template = fs.readFileSync(templatePath, 'utf-8')
  return handlebars.compile(template)
}