예제 #1
0
 //CSharp.Context context, string viewContents, JavaScriptView master)
 public JavaScriptView(string viewContents, JavaScriptView master)
 {
     //this.Context = context;
     this.Contents = viewContents;
     this.MasterView = master;
 }
예제 #2
0
        IView GetView(ControllerContext controllerContext, string virtualPath, JavaScriptView masterView)
        {
            if (String.IsNullOrEmpty(virtualPath))
            {
                return null;
            }

            var viewContents = this.GetContents(controllerContext, virtualPath);

            return new JavaScriptView(viewContents, masterView); //this.Context, viewContents, masterView);
        }