update templates to support crammit classes