z_sites_config (zotonic_core v1.0.0-rc.11)

Load and manage site configuration files.

Link to this section Summary

Link to this section Functions

Link to this function

app_is_site(App)

-spec app_is_site(atom()) -> boolean().
Link to this function

config_files(Site)

-spec config_files(atom()) -> [file:filename_all()].
Link to this function

config_files(Node, Site)

-spec config_files(node(), atom()) -> [file:filename_all()].
Link to this function

merge_global_configs(Sitename, SiteConfig, GlobalConfig)

-spec merge_global_configs(atom(), map(), map()) -> map().
Merge the global config options into the site's options, adding defaults.
Link to this function

read_configs(Fs)

-spec read_configs([file:filename_all()]) -> {ok, map()} | {error, term()}.