예제 #1
0
 public static void Home(MangoContext ctx)
 {
     RenderTemplate (ctx, "home.html", new {
         Title = "Home",
         Message = "Welcome to the Mango-Project."
     });
 }
예제 #2
0
 public static void About(MangoContext ctx)
 {
     //
     // Templates use property lookup, so you can pass in
     // a strongly typed object, or you can use an anonymous
     // type.
     //
     RenderTemplate (ctx, "about.html", new {
         Title = "About",
         Message = "Hey, I am the about page.",
     });
 }
예제 #3
0
파일: DocsModule.cs 프로젝트: KevinT/manos
 public static void GettingStarted(MangoContext context)
 {
     Console.WriteLine ("running geting started template.");
 }
예제 #4
0
파일: DocsModule.cs 프로젝트: KevinT/manos
 public static void Api(MangoContext context)
 {
     Console.WriteLine ("running API template");
 }