DemoDirector.Plug.Index (DemoDirector v0.1.1)

Copy Markdown View Source

Renders a tiny HTML listing of every saved demo and serves each demo's emitted JS at <mount>/demos/<name>.js.

Mounted by DemoDirector.Router.demo_director/1 via DemoDirector.Plug.Static's dispatch — /demos lists, and /demos/<name>.js returns the captured JS plus the demo's start_at route as a JSON wrapper.