Packages

Generators for Elixir apps using Dotenvy for config including variants of the phx_new generators

Current section

Files

Jump to
dotenvy_generators 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
# The home page is often custom made,
# so skip the default app layout.
render(conn, :home, layout: false)
end
end