It's not so easy. If you see the source of asp.net mvc 3 , you can see the following things in the web pages folder:
File: RazorDebugHelpers.cs
string outputExtension = extension.Substring(0, 3);
File: RazorCodeLanguage.cs
private static IDictionary<string, RazorCodeLanguage> _services = new Dictionary<string, RazorCodeLanguage>(StringComparer.OrdinalIgnoreCase) {
{ "cshtml", new CSharpRazorCodeLanguage() },
{ "vbhtml", new VBRazorCodeLanguage() }
};
File: PreApplicationStartCode.cs
WebPageHttpHandler.RegisterExtension("cshtml");
WebPageHttpHandler.RegisterExtension("vbhtml");
Etc.
? mvc. - , , , , , . , , , .