Skip to content

PlatformViewEngine

@tsed/platform-views

Usage

typescript
import { PlatformViewEngine } from "@tsed/platform-views";

See /packages/platform/platform-views/src/types/domain/PlatformViewsSettings.ts.

Overview

ts
interface PlatformViewEngine {
    options: PlatformViewsEngineOptions;
    render(path: string, options: PlatformRenderOptions): Promise<string | PlatformViewWritableStream>;
}

options

ts
options: PlatformViewsEngineOptions;

render

ts
render(path: string, options: PlatformRenderOptions): Promise<string | PlatformViewWritableStream>;

Released under the MIT License.