public static void Home(MangoContext ctx) { RenderTemplate (ctx, "home.html", new { Title = "Home", Message = "Welcome to the Mango-Project." }); }
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.", }); }
public static void GettingStarted(MangoContext context) { Console.WriteLine ("running geting started template."); }
public static void Api(MangoContext context) { Console.WriteLine ("running API template"); }