文件名称:asp.net mvc 自定义视图引擎
文件大小:414KB
文件格式:RAR
更新时间:2019-04-02 09:59:38
WebViewPage ViewEngine
asp.net mvc 自定义视图引擎 public ThemeableRazorViewEngine() { AreaViewLocationFormats = new[] { //themes "~/Areas/{2}/Themes/{3}/Views/{1}/{0}.cshtml", "~/Areas/{2}/Themes/{3}/Views/Shared/{0}.cshtml", //default "~/Areas/{2}/Views/{1}/{0}.cshtml", "~/Areas/{2}/Views/Shared/{0}.cshtml", }; AreaMasterLocationFormats = new[] { //themes "~/Areas/{2}/Themes/{3}/Views/{1}/{0}.cshtml", "~/Areas/{2}/Themes/{3}/Views/Shared/{0}.cshtml", //default "~/Areas/{2}/Views/{1}/{0}.cshtml", "~/Areas/{2}/Views/Shared/{0}.cshtml", }; AreaPartialViewLocationFormats = new[] { //themes "~/Areas/{2}/Themes/{3}/Views/{1}/{0}.cshtml", "~/Areas/{2}/Themes/{3}/Views/Shared/{0}.cshtml", //default "~/Areas/{2}/Views/{1}/{0}.cshtml", "~/Areas/{2}/Views/Shared/{0}.cshtml" }; ViewLocationFormats = new[] { //themes "~/Themes/{2}/Views/{1}/{0}.cshtml", "~/Themes/{2}/Views/Shared/{0}.cshtml", //default "~/Views/{1}/{0}.cshtml", "~/Views/Shared/{0}.cshtml", //Admin //"~/Administration/Views/{1}/{0}.cshtml", //"~/Administration/Views/Shared/{0}.cshtml", }; MasterLocationFormats = new[] { //themes "~/Themes/{2}/Views/{1}/{0}.cshtml", "~/Themes/{2}/Views/Shared/{0}.cshtml", //default "~/Views/{1}/{0}.cshtml", "~/Views/Shared/{0}.cshtml" }; PartialViewLocationFormats = new[] { //themes "~/Themes/{2}/Views/{1}/{0}.cshtml", "~/Themes/{2}/Views/Shared/{0}.cshtml", //default "~/Views/{1}/{0}.cshtml", "~/Views/Shared/{0}.cshtml", //Admin //"~/Administration/Views/{1}/{0}.cshtml", //"~/Administration/Views/Shared/{0}.cshtml", }; FileExtensions = new[] { "cshtml" }; }
【文件预览】:
MvcViewEngine
----Global.asax.cs(833B)
----MvcViewEngine.csproj.user(1KB)
----Startup.cs(292B)
----packages.config(4KB)
----favicon.ico(31KB)
----Controllers()
--------AccountController.cs(14KB)
--------HomeController.cs(760B)
----Web.Release.config(1KB)
----Scripts()
--------jquery.validate.unobtrusive.min.js(6KB)
--------modernizr-2.6.2.js(50KB)
--------_references.js(396B)
--------jquery.validate.unobtrusive.js(14KB)
--------bootstrap.js(58KB)
--------jquery.validate.js(39KB)
--------jquery-1.10.2.intellisense.js(159KB)
--------respond.js(10KB)
--------respond.min.js(5KB)
--------jquery.validate.min.js(21KB)
--------bootstrap.min.js(28KB)
--------jquery-1.10.2.min.map(137KB)
--------jquery.validate-vsdoc.js(44KB)
--------jquery-1.10.2.min.js(92KB)
--------jquery-1.10.2.js(268KB)
----Models()
--------IdentityModels.cs(525B)
--------AccountViewModels.cs(2KB)
----Themes()
--------TXDEMO()
----Properties()
--------AssemblyInfo.cs(1KB)
----fonts()
--------glyphicons-halflings-regular.ttf(29KB)
--------glyphicons-halflings-regular.eot(14KB)
--------glyphicons-halflings-regular.svg(62KB)
--------glyphicons-halflings-regular.woff(16KB)
----Global.asax(105B)
----Web.Debug.config(1KB)
----MvcViewEngine.csproj(14KB)
----App_Data()
----Content()
--------Site.css(726B)
--------bootstrap.min.css(96KB)
--------bootstrap.css(118KB)
----Web.config(3KB)
----App_Start()
--------BundleConfig.cs(1KB)
--------RouteConfig.cs(606B)
--------Startup.Auth.cs(1KB)
--------FilterConfig.cs(281B)
----Views()
--------_ViewStart.cshtml(57B)
--------Shared()
--------Account()
--------Home()
--------Web.config(2KB)
----Project_Readme.html(5KB)
MvcViewEngine.v12.suo
Nop.Web.Framework
----Nop.Web.Framework.csproj(3KB)
----Nop.Web.Framework.csproj.user(228B)
----ViewEngines()
--------Razor()
----Themes()
--------ThemeableVirtualPathProviderViewEngine.cs(12KB)
--------ThemeableRazorViewEngine.cs(5KB)
----Properties()
--------AssemblyInfo.cs(1KB)
----obj()
--------Debug()
----bin()
--------Debug()
--------Release()
MvcViewEngine.sln