config()
Usage
config(key[, default])
Description
Returns the configuration value associated with the given key from structr.conf
. This method can be used to read arbitrary values(*) from the configuration file and use it to configure frontend behaviour, default values etc. The optional second parameter is the default value to be returned if the configuration key is not present.
* For security purposes the superuser password can not be read with this function.
Example
${config('files.path')}
${config('some.unconfigured.key', 'default value')}
results in
./files
default value