Packages

An Elixir framework to build your own in-house PaaS (Platform as a Service).

Current section

Files

Jump to
antikythera priv gear_template web controller hello.ex
Raw

priv/gear_template/web/controller/hello.ex

defmodule <%= gear_name_camel %>.Controller.Hello do
use Antikythera.Controller
def hello(conn) do
<%= gear_name_camel %>.Gettext.put_locale(conn.request.query_params["locale"] || "en")
Conn.render(conn, 200, "hello", [gear_name: :<%= gear_name %>])
end
end