diff --git a/CHANGELOG.md b/CHANGELOG.md index 680e9af4..3c8a50c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed +- Updated HTML of the debug template [#599](https://github.com/smarty-php/smarty/pull/599) + ## [4.1.1] - 2022-05-17 ### Security diff --git a/libs/debug.tpl b/libs/debug.tpl index edc7bef9..4f82a582 100644 --- a/libs/debug.tpl +++ b/libs/debug.tpl @@ -1,9 +1,9 @@ {capture name='_smarty_debug' assign=debug_output} - - + +
${$vars@key}- {if isset($vars['nocache'])}Nocache{/if} - {if isset($vars['scope'])}Origin: {$vars['scope']|debug_print_var nofilter}{/if} + | ||||
+ ${$vars@key}+ {if isset($vars['nocache'])}Nocache{/if} + {if isset($vars['scope'])}Origin: {$vars['scope']|debug_print_var nofilter}{/if} + |
+
+ Value+ {$vars['value']|debug_print_var:10:80 nofilter} + |
+
+ {if isset($vars['attributes'])}
+ Attributes+ {$vars['attributes']|debug_print_var nofilter} + {/if} |
- Value{$vars['value']|debug_print_var:10:80 nofilter} |
- {if isset($vars['attributes'])}Attributes{$vars['attributes']|debug_print_var nofilter} {/if} |
{/foreach}
#{$vars@key}#- {if isset($vars['scope'])}Origin: {$vars['scope']|debug_print_var nofilter}{/if} + | ||
+ #{$vars@key}#+ {if isset($vars['scope'])}Origin: {$vars['scope']|debug_print_var nofilter}{/if} + |
+ + {$vars['value']|debug_print_var:10:80 nofilter} | -{$vars['value']|debug_print_var:10:80 nofilter} |