Options
All
  • Public
  • Public/Protected
  • All
Menu

Template engine providing support for the nunjucks templating.

Hierarchy

  • NunjucksTemplateEngine

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

env

env: Environment

pod

pod: Pod

Methods

getTimer

  • getTimer(podPath?: string): Timer

render

  • render(path: string, context: any): Promise<string>
  • Renders the template string using the template engine and the given context.

    Parameters

    • path: string
    • context: any

    Returns Promise<string>

renderFromString

  • renderFromString(template: string, context: any): Promise<string>
  • Renders the template from a string using the template engine and the given context.

    Parameters

    • template: string
    • context: any

    Returns Promise<string>

Generated using TypeDoc