UNPKG

385 BTypeScriptView Raw
1/**
2 * Process string as a template literal string and processes
3 * data
4 */
5export declare function template(tpl: string, data: Object, filename?: string, isMustache?: boolean): any;
6/**
7 * Loads template file from the disk and process it contents
8 * using the [[template]] method
9 */
10export declare function templateFromFile(file: string, data: object, isMustache: boolean): string;