Current section
Files
Jump to
Current section
Files
priv/templates/lib/app/web/page.ex
defmodule <%= @app_module %>.Web.Page do
alias Aino.Token
alias <%= @app_module %>.Web.Page.View
def root(token) do
token
|> Token.response_status(200)
|> Token.response_header("Content-Type", "text/html")
|> View.render("root.html")
end
end
defmodule <%= @app_module %>.Web.Page.View do
require Aino.View
Aino.View.compile([
"lib/<%= @app %>/web/templates/pages/root.html.eex"
])
end