{foreach from=$cats item=cat}
{''|indent:$cat.level:'  '} {$cat.caption}
{include file="sitemap/categories.html" cats=$cat.subcats} {/foreach}