Koha/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-open.inc
Jonathan Druart fe43d98bd1
Bug 24110: Do not html filter TT vars when dumped
DumpTemplateVarsIntranet and DumpTemplateVarsOpac are devs tools to
display the variables sent to the template. They should not be filtered
otherwise it's getting complicate to read.

For instance: $VAR1 = { var => val }

Test plan:
Turn DumpTemplateVarsIntranet on
Go to the main page
Show the source of the page
Confirm that the variable are displayed as it and not filtered

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-02-19 11:23:17 +00:00

26 lines
753 B
HTML

<!DOCTYPE html>
<!-- TEMPLATE FILE: [% template.name.split('/').last | html %] -->
[% USE Koha %]
[% USE raw %]
[% IF Koha.Preference('DumpTemplateVarsIntranet') %]
[% TRY %]
[% USE Stash %]
[% USE Dumper %]
<!--
[% FILTER replace('<!--', '<!- -') %]
[% FILTER replace('-->', '- ->') %]
[% Dumper.dump( Stash.stash() ) | $raw %]
[% END %]
[% END %]
-->
[% CATCH %]
<!--
DumpTemplateVarsIntranet is set to 'Do', but
Template::Plugin::Stash is not installed.
-->
[% END %]
[% END %]
[% IF ( bidi ) %]<html lang="[% lang | html %]" dir="[% bidi | html %]">[% ELSE %]<html lang="[% lang | html %]">[% END %]
<head>