示例#1
0
        public static void RegisterViewEngine(Assembly assembly)
        {            
            var engine = new RazorGeneratorEngine().Create(assembly);

            ViewEngines.Engines.Insert(0, engine); //Additional Engines are added by RazorGeneratorMvcStart in each assembly App_Start folder

            VirtualPathFactoryManager.RegisterVirtualPathFactory(engine);
        }
示例#2
0
        public static void Start()
        {
            var engine = new RazorGeneratorEngine().Create<Marker_EdFi_Dashboards_Presentation_Core>();

            // Add the Core Engine to the end of this list as EdFi.Dashboards.Presentation.Web Engine should be first
            ViewEngines.Engines.Add(engine);

            VirtualPathFactoryManager.RegisterVirtualPathFactory(engine);
        }