A resource generator for Phoenix which provides templates with AJAX functionality utilizing the Semantic UI framework functionality.
If available in Hex, the package can be installed as:
-
Add phoenix_ajax to your list of dependencies in
mix.exs
:def deps do [{:phoenix_ajax, "~> 0.0.1"}] end
-
Ensure phoenix_ajax is started before your application:
def application do [applications: [:phoenix_ajax]] end
Generates a Phoenix resource similar to mix phoenix.gen.html
with
AJAX functionality.
mix phoenix_ajax.gen.html User users name:string age:integer