docs: async function getTemplate({template, preset}) {
  	if (typeof template === 'string') {
  		return template;
  	}
  
  	if (typeof preset === 'string') {
  		try {
  			return (
  				await read(
  					resolve(
  						__dirname,
  						'templates',
  						[preset.toLowerCase(), 'html'].join('.'),
  					)
  				)
  			).toString();
  		} catch (error) {
  			throw new Error(`Preset ${preset} not found`);
  		}
  	}
  
  	return DEFAULT_TEMPLATE;
  }