1 | import * as Hogan from 'hogan.js';
|
2 | export interface RawTemplates {
|
3 | [name: string]: string;
|
4 | }
|
5 | export interface CompiledTemplates {
|
6 | [name: string]: Hogan.Template;
|
7 | }
|
8 | export interface HoganJsUtilsConfig {
|
9 | compiledTemplates?: CompiledTemplates;
|
10 | rawTemplates?: RawTemplates;
|
11 | }
|
12 | export 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 |