{* Smarty *} {* debug.tpl, last updated version 2.1.0 *} {assign_debug_info} {capture assign=debug_output}
{literal}
{/literal}

# Smarty Debug Console

## included templates & config files (load time in seconds)

{section name=templates loop=$_debug_tpls} {section name=indent loop=$_debug_tpls[templates].depth} {/section} {$_debug_tpls[templates].filename|escape:html} {if isset($_debug_tpls[templates].exec_time)} ({$_debug_tpls[templates].exec_time|string_format:"%.5f"}) {if %templates.index% eq 0}(total){/if} {/if}
{sectionelse}

no templates included

{/section}

## assigned template variables

{section name=vars loop=$_debug_keys}
{ldelim}${$_debug_keys[vars]|escape:'html'}{rdelim} | {$_debug_vals[vars]|@debug_print_var}
{sectionelse}
no template variables assigned
{/section}

## assigned config file variables (outer template scope)

{section name=config_vars loop=$_debug_config_keys}
{ldelim}#{$_debug_config_keys[config_vars]|escape:'html'}#{rdelim} | {$_debug_config_vals[config_vars]|@debug_print_var}
{sectionelse}
no config vars assigned
{/section}

{/capture} {if isset($_smarty_debug_output) and $_smarty_debug_output eq "html"} {$debug_output} {else}
{/if}