forked from shibao/cannery
12 lines
209 B
Elixir
12 lines
209 B
Elixir
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
|