Interface MustacheStatic

Index

Properties

Methods

Properties

public Context: MustacheContext

public Scanner: MustacheScanner

public Writer: MustacheWriter

public escape: any

public name: string

public tags: string

public version: string

Methods

public clearCache(): MustacheWriter

Returns

MustacheWriter

public compile(template: string): MustacheWriter

Parameters

  • template: string

Returns

MustacheWriter

public compile(template: string, tags: any): MustacheWriter

Parameters

  • template: string
  • tags: any

Returns

MustacheWriter

public compilePartial(name: string, template: string, tags: any): MustacheWriter

Parameters

  • name: string
  • template: string
  • tags: any

Returns

MustacheWriter

public compileTokens(tokens: any, template: string): MustacheWriter

Parameters

  • tokens: any
  • template: string

Returns

MustacheWriter

public parse(template: string, tags: any): any

Parameters

  • template: string
  • tags: any

Returns

any

public render(template: string, view: any, partials?: any): string

Parameters

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

Returns

string

public to_html(template: string, view: any, partials?: any, send?: any): string

Parameters

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

Returns

string