Generate config files from a template