跳到主要内容
版本:Next

NunjucksView

Implements

  • IViewEngine

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

nunjucks

Methods

render

  • render(name: string, locals?: Record<string, any>, options?: RenderOptions): Promise<string>

renderString

  • renderString(tpl: string, locals?: Record<string, any>, options?: RenderOptions): Promise<string>