Store templates on constructor classes
Trim templates before creating elements