Instead of creating template files in the repo, maybe a script in tools that creates the files with all the proper contents?
Why not create an entire project framework is the spirit of VisualStudio: I want to create: [ ] Device driver [ ] An MTD driver [ ] A new board [ ] etc.Then create all of the necessary files and update the build sysgtem for the new component.