View Source Phy
Phy provides a number of generators for Elixir Phoenix projects.
The generators are "opinionated" - you need to buy in to the library's approach to use them.
For example, an ok/1
helper is provided for live view returns,
allowing you to do this:
def mount(_params, _session, socket) do
socket
|> ok()
end
Generators
phy.gen.http_client
phy.gen.live_view
Name
phy
follows phx
!
Installation
If available in Hex, the package can be installed
by adding phy
to your list of dependencies in mix.exs
:
def deps do
[
{:phy, "~> 0.1.0"}
]
end
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/phy.