z_config (zotonic_core v1.0.0-rc.10)

Wrapper for Zotonic application environment configuration

Link to this section Summary

Functions

Get value from config file (cached)

Get value from config file, returning default value when not set (cached).
Copy some zotonic config settings over to other applications

Link to this section Functions

-spec all() -> [{atom(), term()}].
-spec get(atom()) -> any().

Get value from config file (cached)

Some config settings can be overruled by environment settings.
Link to this function

get(Key, Default)

-spec get(atom(), any()) -> any().
Get value from config file, returning default value when not set (cached).
-spec init_app_env() -> ok.
Copy some zotonic config settings over to other applications
Link to this function

maybe_map_env(V)