This repository has been archived on 2024-06-16. You can view files and clone it, but cannot push or open issues or pull requests.
mebe/lib/utils.ex

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