Exemplo n.º 1
0
        protected override IView CreatePartialView(ControllerContext controllerContext, string partialPath)
        {
            Template      viewTemplate = GetTemplate(partialPath);
            NVelocityView view         = new NVelocityView(controllerContext, viewTemplate, null);

            return(view);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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;
 }
Exemplo n.º 4
0
 protected override IView CreatePartialView(ControllerContext controllerContext, string partialPath)
 {
     Template viewTemplate = GetTemplate(partialPath);
     NVelocityView view = new NVelocityView(controllerContext, viewTemplate, null);
     return view;
 }