@midwayjs/viewClassesContextViewVersion: NextSur cette pageContextView View instance for each request. It will find the view engine, and render it. The view engine should be registered in ViewManager.ImplementsIViewEngineIndex ConstructorsconstructorPropertiesctxviewConfigviewManagerMethodsrenderrenderStringConstructors constructornew ContextView(): ContextViewProperties ctxctx: anyviewConfigviewConfig: anyviewManagerviewManager: ViewManagerMethods renderrender(name: string, locals?: Record<string, any>, options?: RenderOptions): Promise<string>Render a file by view engine, then set to bodyrenderStringrenderString(tpl: string, locals?: Record<string, any>, options?: RenderOptions): Promise<string>Render a template string by view engine
View instance for each request.
It will find the view engine, and render it. The view engine should be registered in ViewManager.