Bonfire.Common.ConfigSettingsRegistration (Bonfire v1.0.0-social-rc.1.19)

View Source

Shared functionality for registering configuration and settings keys at compile time.

Summary

Functions

Before compile hook to add bonfire_config_keys function.

Module attribute initialization for config/settings modules.

Create a registration map based on the specified order of keys.

Create a macro that registers keys and delegates to implementation.

Register a key at compile time.

Functions

__before_compile__(env)

(macro)

Before compile hook to add bonfire_config_keys function.

__using__(opts)

(macro)

Module attribute initialization for config/settings modules.

create_registration_map(keys_order, a, b, c)

Create a registration map based on the specified order of keys.

def_registered_macro(macro_name, fn_name, type, keys_order, module)

(macro)

Create a macro that registers keys and delegates to implementation.

register_key(type, keys_order, a, b, c, caller)

Register a key at compile time.