add ids & classes to <template> elements