private static void Setup() { var resources = new string[] { "avatar.png", "logo.png", "mia.png", "ee1.PNG", "ee2.PNG", "ee3.PNG", "ee4.PNG" }; var main = Layout.Create() .Add("models", Controller.From <AIController>()) .Add("games-main", Controller.From <GameController>()) .Add("games-ggj", Controller.From <GGJController>()) .Add("games-eternal", Controller.From <EternalController>()) .Add("systems", Controller.From <SystemController>()) .Add("reports", Controller.From <ReportController>()) .Add("user", ModScriban.Page(Resource.FromAssembly("user.html")).Title("Internal Systems")) .Index(ModScriban.Page(Resource.FromFile("Pages/index.html")).Title("Home")); foreach (var resource in resources) { main.Add(resource, Download.From(Resource.FromAssembly(resource))); } var menu = Menu.Empty() .Add("{website}", "Home") .Add("/games-main/", "Games - Main", GameController.Links()) .Add("/games-eternal/", "Games - Eternal", EternalController.Links()) .Add("/games-ggj/", "Games - GGJ", GGJController.Links()) .Add("/models/", "AI Models", AIController.Links()) .Add("/systems/", "Systems", SystemController.Links()); var website = Website.Create() .Theme(GetAdminLTE()) .Menu(menu) .Content(main); Host.Create() .Defaults() .Console() .Handler(website) .Run(); }