Spaceboy.Static (Spaceboy v0.1.1) View Source

Controller handling static files rendering

You are not supposed to use it directly but with Spaceboy.Router.static/3 macro which nicely wraps its functionality.

Link to this section Summary

Functions

Render appropriate content for the path

Link to this section Functions

Link to this function

render(conn, opts \\ [])

View Source

Specs

render(conn :: Spaceboy.Conn.t(), Keyword.t()) :: Spaceboy.Conn.t()

Render appropriate content for the path