Skip to main content
Module

x/frugal/core.ts

A frugal web framework
Go to Latest
import * as frugal from "https://deno.land/x/frugal@0.3.2/core.ts";

Classes

A persistance layer using the filesystem

A Frugal instance.

FrugalBuilder does everything needed to build or load a Frugal instance. This class orchestrates config loading, dependency graph building, cache loading and loaders.

Wrap a FrugalBuilder in a watcher instance. Internally, this class will spawn a child deno process in watch mode actually running the FrugalBuilder and the produced instance.

Class holding the result of all loaders generation

Class handling the page building process (offloading the actual generation to PageGenerator)

Class handling the page generation process.

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

A Cache that can be persisted using a Persistance layer (filesystem, Redis, etc...)

A persistance layer using Upstash

Functions

Convenience function building a FrugalBuilder, a FrugalInsance, and starting the build process.

Build a page object from a page descriptor

Convenience function building a FrugalBuilder, a FrugalWatcher, and starting the watch process. By default all modules in the dependency graph are watched (see https://deno.land/manual/getting_started/command_line_interface#watch-mode). If you want to watch additionnal files/folders, pass them to the paths option.

Interfaces

A persistance layer