touying-get-config
touying-get-config(key: none, default: type, ..args)(source)Gets the current config at the point of the call. Returns a dict with context evaluated values.
Usage:
touying-get-config() // returns the whole config dict
touying-get-config().common.handout // returns the value of the "handout" config in the "common" category
touying-get-config().handout // same as above. common is also registered at the top level.
touying-get-config("commmon.handout") // same as above. You can also query with a key, and you will get the subconfig or value back.
Parameters
key : str default: none
The key of the subconfiguration to retrieve. Default none, returns the entire config. May also be passed in as a positional argument. Only necessary when you set custom keys into touyings' config. Theme configuration is naturally available as touying-get-config().store.long-theme-key
default : any default: type
The default value to return if the key is not found.
Returns: dict