@gravitywelluk/email-generator
Version:
A library to help generate email templates
10 lines (9 loc) • 395 B
TypeScript
/**
* Populate a html template replacing handlebar style values with your named values
*
* @param htmlTemplate The html string template with params {%param%}
* @param emailData The email data to load into the template
*
* @returns interpolated email string template
*/
export declare const generateHTMLEmail: <D extends Record<string, any>>(htmlTemplate: string, emailData: D) => string;