Dynamic module atpl

Index

Functions

Functions

__express(filename: string, options: any, callback: Function): any

Parameters

  • filename: string
  • options: any
  • callback: Function

Returns

any

compile(templateString: string, options: any): (context: any) => string

Parameters

  • templateString: string
  • options: any

Returns

(context: any) => string

registerExtension(items: any)

Parameters

  • items: any

registerFilters(items: any)

Parameters

  • items: any

registerFunctions(items: any)

Parameters

  • items: any

registerTags(items: any)

Parameters

  • items: any

registerTests(items: any)

Parameters

  • items: any

renderFile(viewsPath: string, filename: string, parameters: any, cache: boolean, done: (err: Error, result?: string) => void)

Parameters

  • viewsPath: string
  • filename: string
  • parameters: any
  • cache: boolean
  • done: (err: Error, result?: string) => void

renderFileSync(viewsPath: string, filename: string, parameters: any, cache: boolean): string

Parameters

  • viewsPath: string
  • filename: string
  • parameters: any
  • cache: boolean

Returns

string