Module z_config

Wrapper for Zotonic application environment configuration.

Copyright © 2010-2021 Marc Worrell, 2014 Arjan Scherpenisse

Authors: Marc Worrell (marc@worrell.nl).

Description

Wrapper for Zotonic application environment configuration

Function Index

all/0
get/1Get value from config file (cached).
get/2Get value from config file, returning default value when not set (cached).
init_app_env/0Copy some zotonic config settings over to other applications.
maybe_map_env/1

Function Details

all/0

all() -> [{atom(), term()}]

get/1

get(Key::atom()) -> any()

Get value from config file (cached)

Some config settings can be overruled by environment settings.

get/2

get(Key::atom(), Default::any()) -> any()

Get value from config file, returning default value when not set (cached).

init_app_env/0

init_app_env() -> ok

Copy some zotonic config settings over to other applications

maybe_map_env/1

maybe_map_env(V) -> any()


Generated by EDoc