@restorecommerce/handlebars-helperized
Version:
Opinionated handlebars based templating engine for rendering e-mail like content
20 lines (19 loc) • 665 B
TypeScript
declare class Renderer {
/**
@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)
*/
hbs: any;
style: string | undefined;
template: any;
constructor(template: string, layout?: string | undefined, style?: string | undefined, opts?: object | undefined, customHelpersList?: any);
/**
@param {Object} context: required data for the placeholders
@return {String} html
*/
render(context: Object): any;
}
export default Renderer;