whole_func_string: 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)
  }
func_code_string: 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)
  }
func_documentation_string: Create a template object from a template of the assets folder. Use the type to determine which template must be selected.