UNPKG

@helldoc/core

Version:
24 lines (23 loc) 565 B
import { AppContext } from "../types"; declare type AppRender = (path: string) => { scripts: string; links: string; styles: string; content: string; }; export default class SSR { ctx: AppContext; render: AppRender; template: string; scriptDir: string; scriptPath: string; webStatsPath: string; constructor(ctx: AppContext, template: string); run(): Promise<void>; private clearOutDir; private resolveOutDir; private normalizeHead; private extractHTMLFile; private renderWithTemplate; } export {};