<li class="dd-item" data-id="{$category.id}">
    <div class="dd-handle">
        <span class="dd-title">{$category.name|escape}</span>
    </div>
    {if !empty($category.children)}
        <ol class="dd-list">
            {foreach $category.children as $child}
                {include file="./category_item.tpl" category=$child}
            {/foreach}
        </ol>
    {/if}
</li>
