Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
class PageRefresher
import { PageRefresher } from "https://deno.land/x/frugal@0.5.0/packages/core/mod.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.