{capture name='_smarty_debug' assign=debug_output}

# Smarty Debug Console - {if isset($template_name)}{$template_name|debug_print_var nofilter}{else}Total Time {$execution_time|string_format:"%.5f"}{/if}

{if !empty($template_data)}

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

{foreach $template_data as $template} {$template.name} (compile {$template['compile_time']|string_format:"%.5f"}) (render {$template['render_time']|string_format:"%.5f"}) (cache {$template['cache_time']|string_format:"%.5f"})
{/foreach}
{/if}

## assigned template variables

{foreach $assigned_vars as $vars}
${$vars@key|escape:'html'} | {$vars|debug_print_var nofilter}
{/foreach}

## assigned config file variables (outer template scope)

{foreach $config_vars as $vars}
{$vars@key|escape:'html'} | {$vars|debug_print_var nofilter}
{/foreach}

{/capture}