-
Notifications
You must be signed in to change notification settings - Fork 92
/
Copy pathmu2.d.ts
20 lines (13 loc) · 852 Bytes
/
mu2.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
declare module "mu2" {
export var root: string;
export function compileAndRender(templateName: string, view: any) : ReadableStream;
export function compile(filename: string, callback: (err, parsed: IParsed) => void): void;
export function compileText(name: string, template: string, callback: (err, parsed: IParsed) => void): void;
export function compileText(name: string, template: string): IParsed;
export function compileText(template: string): IParsed;
export function render(filenameOrParsed: string, view: any): ReadableStream;
export function render(filenameOrParsed: IParsed, view: any): ReadableStream;
export function renderText(template: string, view : any, partials? :any) : ReadableStream;
export function clearCache(templateName?: string) : void;
export interface IParsed { }
}