UNPKG

jsonblade

Version:

A powerful and modular JSON template engine with extensible filters

11 lines 707 B
export interface TemplateFunction { name: string; func: Function; } export declare function initializeFilters(): void; export declare function compileJSONTemplate(template: string, data: any, functions?: TemplateFunction[]): any; export declare function compileJSONTemplateAsync(template: string, data: any, functions?: TemplateFunction[]): Promise<any>; export declare function evaluateExpression(expr: string, data: any, functions?: TemplateFunction[]): any; export declare function evaluateExpressionAsync(expr: string, data: any, functions?: TemplateFunction[]): Promise<any>; export declare function getObjectPath(path: string, data: any): any; //# sourceMappingURL=json-template.utils.d.ts.map