<?elements
include partial file "tpl/_partial.tpl"
link lninfo lb "Show infobox" route "advtempl/info:1"
string info
string name
block test noprint
?>
<h1>Template inclusion.</h1>
<p>You can include templates from php or by "include" element in template.
In such case, elements from included template will be merged into current template.</p>
<p class="blue">{partial}</p>
{if not info}
{lninfo}
{/if}
{if info}
<p class="gray">Info message: {info} (using template if)</p>
{/if}
{block test}
{name}<br>
{/block}
Elapsed time: 0.91 ms