View Source PhoenixPlayground (phoenix_playground v0.1.3)
Phoenix Playground makes it easy to create single-file Phoenix applications.
Summary
Functions
Starts Phoenix Playground.
Functions
Starts Phoenix Playground.
This functions starts Phoenix with a LiveView (:live
), a controller (:controller
),
or a router (:router
).
Options
:live
- a LiveView module.:controller
- a controller module.:plug
- a plug.:port
- port to listen on, defaults to:4000
.:open_browser
- whether to open the browser on start, defaults totrue
.:child_specs
- child specs to run in Phoenix Playground supervision tree. The playground Phoenix endpoint is automatically added and is always the last child spec. Defaults to[]
.