protected void Application_Start() { RegisterRoutes(RouteTable.Routes); ViewEngines.Engines.Clear(); var engine = new TilesViewEngine(); ViewEngines.Engines.Add(engine.Init()); //TagModel.GlobalModel[FormatConstants.BUNDLE] = new ResourceBundle("Views\\default", null, new VirtualDirFileLocator()); engine.LoadResourceBundle("ResourceBundles.Views.default"); }
protected void Application_Start() { RegisterRoutes(RouteTable.Routes); ViewEngines.Engines.Clear(); FunctionLib.Register(new MathLib()); TagLib.Register(new MyTagLib()); var engine = new TilesViewEngine(); ViewEngines.Engines.Add(engine.Init()); engine.LoadResourceBundle("CustomTaglibsTagsAndFunctions.Views.default"); }
protected void Application_Start() { RegisterRoutes(RouteTable.Routes); ViewEngines.Engines.Clear(); var engine = new TilesViewEngine(); ViewEngines.Engines.Add(engine.Init()); //TagModel.GlobalModel[FormatConstants.BUNDLE] = new ResourceBundle("Views\\default", null, new VirtualDirFileLocator()); engine.LoadResourceBundle("ResourceBundles.Views.default"); }
protected void Application_Start() { RegisterRoutes(RouteTable.Routes); ViewEngines.Engines.Clear(); FunctionLib.Register(new MathLib()); TagLib.Register(new MyTagLib()); var engine = new TilesViewEngine(); ViewEngines.Engines.Add(engine.Init()); engine.LoadResourceBundle("CustomTaglibsTagsAndFunctions.Views.default"); }