View Source GriffinSSG.Web.Plug (Griffin v0.3.0)

Defines a simple HTTP server with LiveReload. Spawned from the grf.server task. PlugLiveReload doesn't work within the context of a Plug.Builder, so we can't use Plug.Static to serve the files. Instead, we use Plug.Router and need to implement the file serving logic, which is... unfortunate.

Summary

Functions

Callback implementation for Plug.call/2.

Callback implementation for Plug.init/1.

Functions

Callback implementation for Plug.call/2.

Callback implementation for Plug.init/1.