Custom templates are sometimes very handy. For example if your pages are inherited from a custom base page. Normally you would have to tweak your pages to fit your framework. Sometimes its even boaring to go and change the new pages added to the project again and again.
Say your framework require all pages to inherit from <YourProject.BaseClassName>. Then you have to change the codebehind of the new pages that you add to your project to something like this
public partial class _Default1 : YourProject.BaseClassName
Good News is You can turn a page that you are happy with in to custom templates and then create the new page from the template. This infact saves a lot of time as you do not need to go on each page and do the boaring tweaking.
Any items of your project or the even the whole project can be templated.
The File>Export Template will do the trick. For details steps please refer to This Blog Post done by Scott
Remember the only changes that you would require to make in your Project / Project Item is to put the following parameters as required.
-
$safeprojectname$
-
$safeclassname$
-
$guid1$
-
$guid5$
For a full list of parameters and some example of using them please refer to this link at msdn.