<section> create a content section

name
section
xml namespace
http://moyaproject.com

Defines a section container for content. A section is a top level container for content, and is used to break up the content in to function groups, which may be rendered independently. For example, here is a content definition with two sections; 'body' and 'sidebar':

<content libname="content.front" template="front.html">
    <section name="body">
        <!-- main body content goes here -->
    </section>
    <section name="sidebar">
        <!-- sidebar content here -->
    </section>
</content>

The template for the above content would render the sections with the {% render %} template tag, For example:

<html>
    <body>
        <div id="sidebar>
        {% render sections.sidebar %}
        </div>
        <h1>Content example</h1>
        {% render sections.body %}
    </body>
</html>
attributes
name purpose type required? default choices
merge Merge method text No "inherit" append
inherit
prepend
replace
name The name of the section text Yes
template Template text No
inherited attributes
name purpose type required? default choices
if Conditional expression expression No yes