includeAttribute NameTypeRequiredDefaultDescriptionfilestringYesn/aThe name of the template file to includeassignstringNon/aThe name of the variable that the output of
include will be assigned to[var ...][var type]Non/avariable to pass local to template
{include} tags are used for including other templates in the current
template. Any variables available in the current template are also
available within the included template. The {include} tag must have
the attribute "file", which contains the template resource path.
You can optionally pass the assign attribute,
which will specify a template variable name that the output of
{include} will be assigned to instead of
displayed.
function include
You can also pass variables to included templates as attributes.
Any variables explicitly passed to an included template as
attributes are only available within the scope of the included
file. Attribute variables override current template variables, in
the case they are named alike.
function include passing variables
Use the syntax for template resources to
include files outside of the $template_dir
directory.
function include template resource examples
See also
{include_php},
{php},
Template Resources and
Componentized Templates.