Pass settings to templates