UNPKG

745 BTypeScriptView Raw
1import * as Hogan from 'hogan.js';
2export interface RawTemplates {
3 [name: string]: string;
4}
5export interface CompiledTemplates {
6 [name: string]: Hogan.Template;
7}
8export interface HoganJsUtilsConfig {
9 compiledTemplates?: CompiledTemplates;
10 rawTemplates?: RawTemplates;
11}
12export default class HoganJsUtils {
13 private preCompiledTemplates;
14 constructor({ compiledTemplates, rawTemplates }: HoganJsUtilsConfig);
15 static compile(templateString: string): Hogan.Template;
16 render(namespace: string, view: string, params: Hogan.Context, partials?: Hogan.Partials, indent?: string): string;
17 template(namespace: string, view: string): Hogan.Template;
18 private templateKey;
19}
20//# sourceMappingURL=hoganjs-utils.d.ts.map
\No newline at end of file