Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/frugal/packages/core/Frugal.ts>Frugal

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