private static void InitFileViewRoutes(IRouteTable table)
 {
     table
         .AddFileRoute("/", "Views/index.cshtml")
         .AddFileRoute("/about/me", "Views/about.cshtml", new AboutMeModel { Name = "Val" })
         .AddFileRoute("/a", "Views/with_layout.cshtml");
 }
Beispiel #2
0
 private static void InitFileViewRoutes(IRouteTable table)
 {
     table
     .AddFileRoute("/", "Views/Home/Index.cshtml")
     .AddFileRoute("/home/index", "Views/Home/Index.cshtml")
     .AddFileRoute("/home/about", "Views/Home/About.cshtml")
     .AddFileRoute("/home/contact", "Views/Home/Contact.cshtml");
 }
Beispiel #3
0
 /// <summary>
 /// Initialize the Razor files
 /// </summary>
 /// <param name="table"></param>
 public static void InitRoutes(IRouteTable table)
 {
     table
     .AddFileRoute("/about/me", "Views/about.cshtml", new { Name = "EmbedIO Razor", Date = DateTime.UtcNow });
 }
 private static void InitEmbeddedViewRoutes(IRouteTable table)
 {
     table.AddFileRoute("/embedded", "/Mezm.Owin.Razor.Example.EmbeddedViews.index.cshtml");
 }