1 {capture name='_smarty_debug' assign=debug_output}
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
5 <title>Smarty Debug Console</title>
6 <style type="text/css">
8 body, h1, h2, td, th, p {
9 font-family: sans-serif;
20 background-color: #f0c040;
27 background-color: #9B410E;
32 border-top: 1px solid black;
54 font-family: monospace;
65 background-color: #eeeeee;
69 background-color: #fafafa;
77 #table_assigned_vars th {
81 #table_config_vars th {
90 <h1>Smarty Debug Console
91 - {if isset($template_name)}{$template_name|debug_print_var nofilter}{else}Total Time {$execution_time|string_format:"%.5f"}{/if}</h1>
93 {if !empty($template_data)}
94 <h2>included templates & config files (load time in seconds)</h2>
96 {foreach $template_data as $template}
97 <font color=brown>{$template.name}</font>
98 <span class="exectime">
99 (compile {$template['compile_time']|string_format:"%.5f"}) (render {$template['render_time']|string_format:"%.5f"}) (cache {$template['cache_time']|string_format:"%.5f"}
107 <h2>assigned template variables</h2>
109 <table id="table_assigned_vars">
110 {foreach $assigned_vars as $vars}
111 <tr class="{if $vars@iteration % 2 eq 0}odd{else}even{/if}">
112 <th>${$vars@key|escape:'html'}</th>
113 <td>{$vars|debug_print_var nofilter}</td>
118 <h2>assigned config file variables (outer template scope)</h2>
120 <table id="table_config_vars">
121 {foreach $config_vars as $vars}
122 <tr class="{if $vars@iteration % 2 eq 0}odd{else}even{/if}">
123 <th>{$vars@key|escape:'html'}</th>
124 <td>{$vars|debug_print_var nofilter}</td>
132 <script type="text/javascript">
133 {$id = $template_name|default:''|md5}
134 _smarty_console = window.open("", "console{$id}", "width=680,height=600,resizable,scrollbars=yes");
135 _smarty_console.document.write("{$debug_output|escape:'javascript' nofilter}");
136 _smarty_console.document.close();