Interface KnockoutTemplateEngine

Hierarchy

Index

Methods

Methods

public createJavaScriptEvaluatorBlock(script: string): string

Parameters

  • script: string

Returns

string

public isTemplateRewritten(template: any, templateDocument: Document): boolean

Parameters

  • template: any
  • templateDocument: Document

Returns

boolean

public makeTemplateSource(template: any, templateDocument?: Document): any

Parameters

  • template: any
  • templateDocument?: Document optional

Returns

any

public renderTemplate(template: any, bindingContext: KnockoutBindingContext, options: Object, templateDocument: Document): any

Parameters

Returns

any

public renderTemplateSource(templateSource: Object, bindingContext?: KnockoutBindingContext, options?: Object): Array<any>

Parameters

Returns

Array<any>

public rewriteTemplate(template: any, rewriterCallback: Function, templateDocument: Document)

Parameters

  • template: any
  • rewriterCallback: Function
  • templateDocument: Document