add a class to rendering templates in a generic way. Supports wrapper templates