public MainMod(ConfigManager mgr) { Get["/config"] = x => { return View["views/config.html", mgr.config]; }; }
protected override void ApplicationStartup(TinyIoCContainer container, IPipelines pipelines) { base.ApplicationStartup(container, pipelines); ConfigManager mgr; mgr = new ConfigManager(); mgr.LoadConfig(); container.Register(mgr); }