Esempio n. 1
0
        public void AddTheme(string name)
        {
            IViewFolder themeFolder = new VirtualPathProviderViewFolder("~/Themes/" + name);
            themeFolder = themeFolder.Append(_defaultViewFolder);

            var container = SparkEngineStarter.CreateContainer();
            container.SetService(themeFolder);
            _themedEngines.Add(name, container.GetService<IViewEngine>());
        }