public override void RenderTemplate(System.Web.Mvc.HtmlHelper html, N2.ContentItem model) { var wrap = !model.IsPage && Defaults.IsContainerWrappable(model.ZoneName); if (wrap) { wrap = model.GetDetail("UseContainer", true); } if (wrap) { html.ViewContext.Writer.WriteLine("<div class=\"container\">"); } base.RenderTemplate(html, model); if (wrap) { html.ViewContext.Writer.WriteLine("</div>"); } }