This is a wrapper module that simplifies reading global configuration. Go ahead and jump to examples
bower install pwf-config
Config has very few methods.
When module is initialized, it reads variable
sys from global scope and uses it as config data. If it finds
sys to be undefined, it waits for pwf-jquery-compat module to be initialized and then tries the same again.
new_cfg as configuration data
path in config. Return
def if not found.
You need to pass JSON encoded data to your page and ensure it is defined before pwf-config initializes. Like this:
This config is later accessible with
pwf.config.get('some_config.value');. If you don't want to use this method, see #use