예제 #1
0
        protected override IView CreatePartialView(ControllerContext controllerContext, string partialPath)
        {
            Template      viewTemplate = GetTemplate(partialPath);
            NVelocityView view         = new NVelocityView(controllerContext, viewTemplate, null);

            return(view);
        }
예제 #2
0
        protected override IView CreateView(ControllerContext controllerContext, string viewPath, string masterPath)
        {
            Template      viewTemplate   = GetTemplate(viewPath);
            Template      masterTemplate = GetTemplate(masterPath);
            NVelocityView view           = new NVelocityView(controllerContext, viewTemplate, masterTemplate);

            return(view);
        }
예제 #3
0
 protected override IView CreateView(ControllerContext controllerContext, string viewPath, string masterPath)
 {
     Template viewTemplate = GetTemplate(viewPath);
     Template masterTemplate = GetTemplate(masterPath);
     NVelocityView view = new NVelocityView(controllerContext, viewTemplate, masterTemplate);
     return view;
 }
예제 #4
0
 protected override IView CreatePartialView(ControllerContext controllerContext, string partialPath)
 {
     Template viewTemplate = GetTemplate(partialPath);
     NVelocityView view = new NVelocityView(controllerContext, viewTemplate, null);
     return view;
 }