Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/frugal/docs/dep/frugal/core.ts>Frugal

A frugal web framework
Go to Latest
class Frugal
import { Frugal } from "https://deno.land/x/frugal@0.5.0/docs/dep/frugal/core.ts";

A Frugal instance.

Constructors

new
Frugal(
config: CleanConfig,
moduleList: ModuleList,
loaderContext: LoaderContext,
)

Properties

readonly
config
readonly
routes

Methods

Build all the registered static pages.

A page might be skipped if nothing has changed since the last build or refresh of the page

clean(unnamed 0?: { justCache?: boolean; })

Wipe the outputDir.

if justCache is set to true, the outputDir is left untouched, and only the cache directory is wiped

getMatchingRoute(pathname: string)
save(options?: { runtime?: boolean; })

Save the current Frugal instance, so it can be loaded with the Frugal.load method