Dynamic module mu2

Index

Variables

Interfaces

Functions

Variables

root: string

Functions

clearCache(templateName?: string)

Parameters

  • templateName?: string optional

compile(filename: string, callback: (err: Error, parsed: "mu2".IParsed) => void)

Parameters

  • filename: string
  • callback: (err: Error, parsed: "mu2".IParsed) => void

compileAndRender(templateName: string, view: any): ReadableStream

Parameters

  • templateName: string
  • view: any

Returns

ReadableStream

compileText(name: string, template: string, callback: (err: Error, parsed: "mu2".IParsed) => void)

Parameters

  • name: string
  • template: string
  • callback: (err: Error, parsed: "mu2".IParsed) => void

compileText(name: string, template: string): IParsed

Parameters

  • name: string
  • template: string

Returns

IParsed

compileText(template: string): IParsed

Parameters

  • template: string

Returns

IParsed

render(filenameOrParsed: string, view: any): ReadableStream

Parameters

  • filenameOrParsed: string
  • view: any

Returns

ReadableStream

render(filenameOrParsed: IParsed, view: any): ReadableStream

Parameters

  • filenameOrParsed: IParsed
  • view: any

Returns

ReadableStream

renderText(template: string, view: any, partials?: any): ReadableStream

Parameters

  • template: string
  • view: any
  • partials?: any optional

Returns

ReadableStream