Dynamic module twig

Index

Interfaces

Functions

Functions

__express(path: string, options: CompileOptions, fn: (err: Error, result: any) => void)

Parameters

  • path: string
  • options: CompileOptions
  • fn: (err: Error, result: any) => void

cache(value: boolean)

Parameters

  • value: boolean

compile(markup: string, options: CompileOptions): (context: any) => any

Parameters

Returns

(context: any) => any

extendFilter(name: string, definition: (left: any, ...params: any[]) => string)

Parameters

  • name: string
  • definition: (left: any, ...params: any[]) => string

extendFunction(name: string, definition: (...params: any[]) => string)

Parameters

  • name: string
  • definition: (...params: any[]) => string

extendTag(definition: any)

Parameters

  • definition: any

extendTest(name: string, definition: (value: any) => boolean)

Parameters

  • name: string
  • definition: (value: any) => boolean

renderFile(path: string, options: CompileOptions, fn: (err: Error, result: any) => void)

Parameters

  • path: string
  • options: CompileOptions
  • fn: (err: Error, result: any) => void

twig(params: Parameters): Template

Parameters

Returns

Template