Skip to main content
Module

x/frugal/core.ts>PageRefresher

A frugal web framework
Go to Latest
class PageRefresher
import { PageRefresher } from "https://deno.land/x/frugal@0.5.0/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.