memEx/lib/lokal_web/views/layout_view.ex

12 lines
209 B
Elixir
Raw Normal View History

2021-03-11 21:12:55 -05:00
defmodule LokalWeb.LayoutView do
use LokalWeb, :view
def get_title(conn) do
if conn.assigns |> Map.has_key?(:title) do
"Lokal | #{conn.assigns.title}"
else
"Lokal"
end
end
end