예제 #1
0
        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);
        }
예제 #2
0
파일: Map.cs 프로젝트: tnelab/TMiniblink
        public ITemplateKey GetKey(string name, ResolveType resolveType, ITemplateKey context)
        {
            var key = new FullPathTemplateKey(name, name, resolveType, context);

            return(key);
        }