コード例 #1
0
ファイル: ThemedViewFactory.cs プロジェクト: Eilon/spark
        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>());
        }