Including other templates
In some cases it happens to allocate conveniently identical parts in several templates (for example, heading or the menu on page) and to place them in one file.
This is done by operator <TMPL_include filename.tmpl>.
Example:
main.tmpl:
<TMPL_loop foo>
<TMPL_include filename.tmpl>
</TMPL_loop>
filename.tmpl:
<TMPL_var bar>
You should specify allowed include paths.
Attention! You CAN NOT place a part of a loop or condition in separate templates.
In other words, this construction will not work:
main.tmpl:
<TMPL_if foo>
<TMPL_include abc.tmpl>
abc.tmpl:
</TMPL_if>
Copyright © 2003 - 2005 CTPP Dev. Team | http://reki.ru/products/ctpp