View Source Orbit.Static (Orbit v0.2.1)

Serve static content from the file system.

The :path or *path URL parameter must be specified when defining the route, e.g.

route "/static/*path", Orbit.Static, from: "priv/static"

options

Options

  • :from (required) - the directory to serve

Link to this section Summary

Functions

Callback implementation for Orbit.Pipe.call/2.

Link to this section Functions

Callback implementation for Orbit.Pipe.call/2.