View Source Orbit.Static (Orbit v0.3.0)

Serve static content from "priv/".

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

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

Options

  • :from (required) - the name of the OTP application where the static files are located
  • :dir - the name of the directory within priv/ where the static files are located; defaults to "static"

Summary

Functions

Callback implementation for Orbit.Pipe.call/2.

Functions

Callback implementation for Orbit.Pipe.call/2.