public string RenderTemplate(string templatePath, Type modelType, object model) { var key = new FullPathTemplateKey(null, templatePath, ResolveType.Layout, null); var templateSource = _templateManager.Resolve(key); var result = Engine.Razor.RunCompile(templateSource, key, modelType, model); return(result); }
public ITemplateKey GetKey(string name, ResolveType resolveType, ITemplateKey context) { var key = new FullPathTemplateKey(name, name, resolveType, context); return(key); }