touying-get-config
Gets the current config at the point of the call. Returns a dict with context evaluated values.
You cannot compute with the resulting values, only display it because touying-get-config uses a context expression internally. If you need to compute with config values use the callback touying-fn-wrapper-raw instead and access what you need on self directly.
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("common.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
The default value to return if the key is not found.
Returns: dict