2021-03-28 21:12:55 -04:00
|
|
|
defmodule Home73k do
|
|
|
|
@moduledoc """
|
|
|
|
Home73k keeps the contexts that define your domain
|
|
|
|
and business logic.
|
|
|
|
|
|
|
|
Contexts are also responsible for managing your data, regardless
|
|
|
|
if it comes from the database, an external API or others.
|
|
|
|
"""
|
2021-03-29 11:27:44 -04:00
|
|
|
|
2021-04-06 10:42:15 -04:00
|
|
|
@app_vars Application.compile_env(:home73k, :app_global_vars, [
|
|
|
|
time_zone: "America/New_York",
|
|
|
|
blog_content: "priv/content",
|
|
|
|
chroma_bin: "priv/chroma/chroma"
|
|
|
|
])
|
2021-03-29 11:27:44 -04:00
|
|
|
|
2021-04-05 16:51:59 -04:00
|
|
|
def app_vars, do: @app_vars
|
|
|
|
def app_time_zone, do: @app_vars[:time_zone]
|
|
|
|
def app_blog_content, do: @app_vars[:blog_content]
|
2021-04-06 10:42:15 -04:00
|
|
|
def app_chroma_bin, do: @app_vars[:chroma_bin]
|
2021-03-28 21:12:55 -04:00
|
|
|
end
|