Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deco/mod.ts

Git-based Visual CMS for Deno, </> htmx and Tailwind apps. Deploy on any Deno-compatible host.
Go to Latest
import * as deco from "https://deno.land/x/deco@1.75.1/mod.ts";

Classes

Escape hatch to allow throwing an http error

Variables

wraps an arbitrary data as a resolved object skiping the config resolution algorithm.

Returns a bad request error

Creates a unique bag key for the given description

Creates a proxy that lets you invoke functions based on the declared actions and loaders. (compatibility with old invoke)

Returns a forbidden error.

Returns not found error.

Creates a proxy that lets you invoke functions based on the declared actions and loaders.

Redirect using the specified @param url.

Stop any config resolution and throw an exception that should be returned to the main handler.

Returns a response with given status and formatted error message if provided.

Returns a unauthorized error.

Creates a set of strongly-typed utilities to be used across the repositories where pointing to an existing function is supported.