DemoDirector.Plug.Static (DemoDirector v0.1.1)

Copy Markdown View Source

Mounted at the package's mount path by DemoDirector.Router.demo_director/1. Routes:

  • GET demo_director.css / GET demo_director.js — static assets, served from priv/static/.
  • GET demos — HTML listing of saved demos with a Play button per row (delegates to DemoDirector.Plug.Index).
  • GET demos/<name>.js — JSON wrapper around a demo's emitted JS, used by the listing page's Play buttons.
  • POST play — broadcasts the request body as a playback JS payload (delegates to DemoDirector.Plug.Play).

Anything else returns 404.