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

Class handling the page refreshing process (offloading the actual building to PageBuilder)

Constructors

new
PageRefresher(page: Page<PATH, DATA>, builder: PageBuilder<PATH, DATA>)

Type Parameters

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

Methods

refresh(pathname: string): Promise<string>

Refresh the page for a given matching pathname.

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