Host an application

            //Create a new host
            coreHost = new NetfluidHost("http://scrappy.netfluid.org/","http://localhost/");
            
            //Load application assembly
            coreHost.Map(Assembly.LoadFile(Path.GetFullPath("MyApp.dll")));

            //Define a logger
            coreHost.Logger = new Netfluid.Logging.FileLogger("app.log");

            //Show a response on 404
            coreHost.On404 += (x) => new MustacheTemplate("./views/404.html");

            //Show a response on server side exception
            coreHost.OnException += (c,e) => 
            {
                HistoryManager.NewFact(e.Message, HistoryType.Bad);

                var list = new List<Exception>();
                while (e != null)
                {
                    list.Add(e);
                    e = e.InnerException;
                }
                return new MustacheTemplate("./views/common/error.html", new { Exceptions = list });
            };

            //Define a public folder for css, javascript, fonts...
            coreHost.PublicFolders.Add(new PublicFolder
            {
                RealPath = "./views/assets",
                VirtualPath = "/assets"
            });