Skip to main content
Module

x/momentum/mvc/mod.ts>MvcConfig

Momentum is an open-source framework for building server-side Deno applications in TypeScript. It provides the paradigms and design patterns to guide developers to create robust, scalable, and enterprise-grade applications.
Latest
interface MvcConfig
Re-export
import { type MvcConfig } from "https://deno.land/x/momentum@v0.8.2/mvc/mod.ts";

Properties

defaultLayout: string | false

Default layout. This is the layout that is used when no layout is specified. The default value is 'main'. To disable a default layout, pass in false

viewFolder: string

Folder where the views will be located. By default this is src/views

layoutFolder: string

Folder where the layouts are located. By default this is src/views/_layout

partialsFolder: string

Folder where the partial views are located. By default this is src/views/_partials

cacheTemplates: boolean

Indicates whether the cache templates. When set to true the templates will be read from disk and pre-compiled once.

optional
errorView: string

Error view. This view will be rendered when an unhandled error occurs.