Add attrmoph creation to templates