跳到主要内容
版本:Next

IViewEngine

Implemented by

Index

Methods

render

  • render(name: string, locals?: Record<string, any>, options?: RenderOptions): Promise<string>
  • Render a file by view engine, then set to body

renderString

  • renderString(tpl: string, locals?: Record<string, any>, options?: RenderOptions): Promise<string>
  • Render a template string by view engine