Options
All
  • Public
  • Public/Protected
  • All
Menu

Calls the given array of TemplateEngines in the order they appear, feeding the output of one into the input of the next.

The first engine will be called with the provided contents and template parameters. All subsequent engines will be called with no template parameter. Contents will still be passed along and another entry will be added for the body of the previous output.

Type parameters

  • T: Dict<any> = Dict<any>

Hierarchy

  • ChainedTemplateEngine

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Private Readonly chainedEngines

chainedEngines: TemplateEngine<Dict<any>>[]

Private Readonly firstEngine

firstEngine: TemplateEngine<T>

Private Readonly renderedName

renderedName: string

Methods

render

  • render(contents: T): Promise<string>
  • render<TCustom>(contents: TCustom, template: Template): Promise<string>