예제 #1
0
        protected void Application_Start(object sender, EventArgs e)
        {
            var engine = new SparkViewEngine
            {
                ViewFolder = new FileSystemViewFolder(Server.MapPath("~/Views"))
            };

            Application["ViewEngine"] = engine;

            engine.LoadBatchCompilation(Assembly.Load("MediumTrustHosting.Views"));
        }