add templates to source files