Skip to main content

MustacheEngine

@webda/templates


Class: MustacheEngine

Defined in: packages/templates/src/mustache.engine.ts:8

Mustache template engine

Implements​

Constructors​

Constructor​

new MustacheEngine(): MustacheEngine

Returns​

MustacheEngine

Properties​

extensions​

extensions: string[]

Defined in: packages/templates/src/mustache.engine.ts:9

File extensions handled by the engine (without the dot)

Implementation of​

TemplateEngine.extensions

Methods​

compile()​

compile(source, options?): CompiledTemplate

Defined in: packages/templates/src/mustache.engine.ts:17

Compile a mustache source

Parameters​

source​

string

the template source

options?​

TemplateRenderOptions

compile options, partials are merged with the render ones

Returns​

CompiledTemplate

the render function

Implementation of​

TemplateEngine.compile