public BrailViewFactory(BooViewEngine viewEngine){
     if (viewEngine == null){
         throw new ArgumentNullException("viewEngine");
     }
     this.configureLayers("brail");
     _viewEngine = viewEngine;
     _viewEngine.Factory = this;
     _viewEngine.Initialize();
 }
Exemple #2
0
      public MyBrail(){
          Engine = new BooViewEngine();
          Engine.Options = new MvcViewEngineOptions();
          Engine.Options.CommonScriptsDirectory = null;
          Engine.Options.SaveBooResult = false;
          Engine.Factory = new BrailViewFactory(Engine);
 
          myapp.OnReload += (s, a) => filecache.Clear();
          PrepareViewResolving();
      }