public string ProcessPageNode(PageNode page) { var rawContent = _markdown.Transform(page.GetRawContent()); var templateFile = "~/" + page.Template + ".cshtml"; var template = Razor.GetTemplate(templateFile); var pageModel = new PageModel(page, rawContent, page.PageLists); return(Razor.ExecuteContent(template, model: pageModel, viewbag: page.Properties ).Result); }