Skip to content

Controller-style abstraction for building multi-action live views on top of Phoenix.LiveView

License

Notifications You must be signed in to change notification settings

karolsluszniak/phoenix_live_controller

Repository files navigation

Phoenix LiveController

License Build status Hex version

Controller-style abstraction for building multi-action live views on top of Phoenix.LiveView.

Installation

Add phoenix_live_controller to your list of dependencies in mix.exs:

def deps do
  [
    {:phoenix_live_controller, "~> 0.7.0"}
  ]
end

Learning

Benchmarking

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

About

Controller-style abstraction for building multi-action live views on top of Phoenix.LiveView

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages