Packages

Phoenix framework project generator. Provides a `mix phx.new` task to bootstrap a new Elixir application with Phoenix and Hotwire dependencies.

Current section

Files

Jump to
phx_new_hotwire templates phx_web controllers page_controller.ex
Raw

templates/phx_web/controllers/page_controller.ex

defmodule <%= @web_namespace %>.PageController do
use <%= @web_namespace %>, :controller
def home(conn, _params) do
render(conn, :home)
end
end