Class: Origami

Origami(port, settings)

An Origami app.

Constructor

new Origami(port, settings)

Parameters:
Name Type Description
port number The port the app should bind to
settings object The settings to intialize the app with
Source:

Members

Component

Shorthand for creating a component and mounting it to the app.
Source:

listen

Create an Origami server. Goes live on the port specified on instantiation.
Source:

Mount

Mount something onto the app.
Source:

Route

Shorthand for creating a route and mounting it to the app.
Source:

use

Mount a directory to the application. Routes and components are imported automatically.
Source: