pass config to templates