Go to the documentation of this file.00001 using System;
00002 using System.Collections.Generic;
00003 using System.Linq;
00004 using System.Text;
00005 using N2.Web.Mvc.Html;
00006 using N2.Engine;
00007 using System.Web.Mvc;
00008
00009 namespace N2.Web.Mvc
00010 {
00011 [Adapts(typeof(ContentItem))]
00012 public class MvcAdapter : AbstractContentAdapter
00013 {
00014 ITemplateRenderer renderer;
00015
00016 public ITemplateRenderer Renderer
00017 {
00018 get { return renderer ?? (renderer = Engine.Resolve<ITemplateRenderer>()); }
00019 set { renderer = value; }
00020 }
00021
00022 public virtual void RenderTemplate(HtmlHelper html, ContentItem model)
00023 {
00024 Renderer.RenderTemplate(model, html);
00025 }
00026 }
00027 }