.. include:: ../../Includes.txt
f:section
=========
A Section is similar to a Partial. The difference is that Partials are separate files, where Sections are defined within
the same template file.
Properties
----------
name
~~~~
:aspect:`Variable type`
String
:aspect:`Description`
A name which can be referenced in order to fetch the content contained within the `f:section` tags.
:aspect:`Default value`
NULL
:aspect:`Mandatory`
Yes
Example
-------
::
{employee.first_name} |
{employee.city} |
As you can see, we've defined a Section to contain the content of a table row. Then we've passed the employee data to
this section on each iteration in the loop, to output the same HTML each time but containing the individual employee information.