Example #1
0
        void IMonoRailContainerEvents.Initialized(IMonoRailContainer container)
        {
            Assembly precompiled = Assembly.Load("PrecompiledViews.Views");

            var factory = new SparkViewFactory();
            factory.Service(container);
            factory.Engine.LoadBatchCompilation(precompiled);
        }
 public ViewComponentContext(SparkView view, SparkViewFactory viewEngine, IDictionary componentParameters, Action body, IDictionary<string, Action> sections)
 {
     _view = view;
     _viewEngine = viewEngine;
     _componentParameters = componentParameters;
     this.body = body;
     this.sections = sections;
     //_contextVarsAdapter = new ContextVarsAdapter(this);
     _contextVarsAdapter = new Hashtable(view.PropertyBag);
 }