Controller-style abstraction for building multi-action live views on top of Phoenix.LiveView
Controller-style abstraction for building multi-action live views on top of Phoenix.LiveView.
Add phoenix_live_controller
to your list of dependencies in mix.exs
:
def deps do
[
{:phoenix_live_controller, "~> 0.7.0"}
]
end
Repository includes a benchmark that allows to measure the worst-case impact of using live controllers with plugs on the web app:
$ mix run priv/bench/bench.exs
inline compile: 0.038
inline run: 0.026
plug_atom compile: 0.233
plug_atom run: 0.155
plug_func compile: 0.234
plug_func run: 0.148