The "resources" variable
Several templates use a variable called "resources" which holds interesting configuration information. Every time I come across this I struggle to work out where it comes from.
This is the trail:
- During ClearSilver rendering, a check is made for a system.config variable called hdf_config and all files in this (it's a list) are loaded.
- The default config.xml contains a line that adds "/build/built/sysdep_config.hdf" to this variable
- That contains a "resources" block (and nothing else)
- The file "/build/build_hdf_config.can" is run from the "build" Makefile and generates this file
- The data for this comes from "/build/data/hdf_conf.txt"
