I'd like to set the title of my app in my/config/config.exs
file:
config :my, My.Endpoint,
url: [host: "localhost"],
root: Path.dirname(__DIR__),
secret_key_base: "secret",
title: "My App"
How can I read title
later to use it in template? Something like:
<div>
Title of my app is <%= ??? %>
</div>
I tried conn.title
and it says there's no such key. But, when I try conn.secret_key_base
it works. Why?