move templates to individual source files