Skip to main content
Go to Latest
class PageRefresher
import { PageRefresher } from "https://deno.land/x/frugal@0.2.1/docs/dep/frugal/core.ts";

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

Constructors

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

Type Parameters

optional
PATH extends Record<string, string> = Record<string, string>
optional
DATA = unknown
optional
BODY = 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.