import { PageGenerator } from "https://deno.land/x/frugal@0.2.1/packages/core/mod.ts";
Class handling the page generation process.
Methods
generate(request: GenerationRequest<BODY>): Promise<{ pagePath: string; content: string; headers: Headers; }>
Generate the page given a request object.
Will throw if the request pathname does not match the page pattern.
generateContentFromData(pathname: string, unnamed 1: ContentGenerationContext<DATA, PATH>): Promise<{ pagePath: string; content: string; }>
Generate the content of a page form its data and path
getHeaders(request: GenerationRequest<BODY>)