Forums / Cotonti / Extensions / Xtemplate Nesting Question

Templates in Templates

Trustmaster
#24020 2010-04-09 00:38
Includes have been in XTemplate since Seditio:
<!-- BEGIN: MAIN -->
...
<!-- BEGIN: ROW -->
{FILE main.rows.tpl}
<!-- END: ROW -->
...
<!-- END: MAIN -->
It works like include in C, so it just puts the contents of main.rows.tpl in place of the FILE directive and then continues parsing the template.
May the Source be with you!