@restorecommerce/handlebars-helperized
Version:
Opinionated handlebars based templating engine for rendering e-mail like content
24 lines • 825 B
TypeScript
declare class Renderer {
protected style?: string;
/**
@param {String} template the template
@param {String} layout the optional layout
@param {String} style the style
@param {Object} opts handlebars options
@param {Array} customHelpersList contains a list of custom helpers (optional)
*/
protected loadingHbs: Promise<any>;
protected template: HandlebarsTemplateDelegate<any>;
constructor(template: string, layout?: string, style?: string, opts?: object, customHelpersList?: any);
/**
* Wait for the renderer to initialize
*/
waitLoad(): Promise<void>;
/**
@param {Object} context: required data for the placeholders
@return {String} html
*/
render(context: object): Promise<string>;
}
export { Renderer };
//# sourceMappingURL=index.d.ts.map