Beispiel #1
0
        public void RenderSection(string sectionName)
        {
            if (!HasSection(sectionName))
            {
                return;                //matching the Brail and NVelocity behavior, but maybe should throw?
            }
            ViewComponentSectionRendereDelegate section = (ViewComponentSectionRendereDelegate)sections[sectionName];

            section.Invoke();
        }
Beispiel #2
0
 public void RenderBody(TextWriter writer)
 {
     if (body == null)
     {
         throw new RailsException("This component does not have a body content to be rendered");
     }
     using (parent.SetOutputWriter(writer))
     {
         body.Invoke();
     }
 }
Beispiel #3
0
        public void RenderBody()
        {
            AssertHasBody();

            body.Invoke();
        }