Add classes to generated templates.