Beamlet.Assets (Beamlet v0.1.0)

Copy Markdown View Source

Serves the files the beamlet's pages load, under /beamlet/assets.

Plug it into your endpoint, before the parsers:

plug Beamlet.Assets

There is nothing to build. It serves the LiveView JavaScript from the bundles the Phoenix packages ship, and the beamlet's own stylesheet. Those three files are all it serves, and any other path under /beamlet/assets answers 404.

Summary

Functions

Callback implementation for Plug.call/2.

Callback implementation for Plug.init/1.

Functions

call(conn, opts)

Callback implementation for Plug.call/2.

init(opts)

Callback implementation for Plug.init/1.