Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
class PageBuilder
import { PageBuilder } from "https://deno.land/x/frugal@0.5.0/docs/dep/frugal/core.ts";

Class handling the page building process (offloading the actual generation to PageGenerator)

Constructors

new
PageBuilder(
page: Page<PATH, DATA>,
hash: string,
generator: PageGenerator<PATH, DATA>,
config: PageBuilderConfig,
)

Type Parameters

optional
PATH extends Record<string, string> = Record<string, string>
optional
DATA = unknown

Methods

build(buildPath: PATH, phase: Phase): Promise<string>

Build the page for a given path and return the output path.

The build process id memoized and will be skiped if nothing has changed since the last build.

Build the page for all the path returned by getPathList.