Conditional support working in template_dict