Skip to main content
Module

x/frugal/packages/frugal_oak/mod.ts

A frugal web framework
Go to Latest
import * as frugal from "https://deno.land/x/frugal@0.2.1/packages/frugal_oak/mod.ts";

Classes

An oak Router where all dynamic routes in a Frugal instance are registered.

Wrap a FrugalServerBuilder in a watcher instance. Internally, this class will spawn a child deno process in watch mode actually running the FrugalServerBuilder and the produced instance. On each application reload, an event will be dispatched to a LiveReloadClient, triggering a browser refresh.

Class exposing middlewares handling Post-Redirect-Get pattern.

An oak Router where all static routes in a Frugal instance are registered.

Functions

Middleware handling static files in the public directory.

Convenience function building a FrugalServerBuilder, a FrugalWatcherServer, and starting the watch process.