15 lines
417 B
Elixir
15 lines
417 B
Elixir
defmodule MebeWeb.Utils do
|
|
@moduledoc """
|
|
This module contains functions and other stuff that just don't fit anywhere else properly.
|
|
"""
|
|
|
|
@doc """
|
|
Get a configuration setting.
|
|
|
|
Uses Application.get_env to get the given setting's value. Use this instead of module attributes
|
|
so the configuration settings are not compiled in!
|
|
"""
|
|
def get_conf(key) do
|
|
Application.get_env :mebe_web, key
|
|
end
|
|
end
|