public string Resolve(ViewResolverContext value) { Controller = value.controller; View = value.viewName; return(Path.Combine(Path.GetDirectoryName( System.Reflection.Assembly.GetExecutingAssembly().Location), @"..\..\dummy.fsx")); }
public ViewEngineResult FindView(ControllerContext controllerContext, string viewName, string masterName, bool useCache) { var context = new ViewResolverContext( controllerContext.RequestContext.RouteData.Values["controller"].ToString(), viewName); string path = Config.ConfigStore.GetInstance().ViewResolver.Resolve(context); return(new ViewEngineResult(new FSTemplateView(path, useCache), this)); }
public string Resolve(ViewResolverContext resolverContext) { var templateUrl = Util.mapViewPath(viewPattern, resolverContext); return(HttpContext.Current.Server.MapPath(templateUrl)); }