Koha/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-open.inc
Nick Clemens 274dcf9a90
Bug 24732: Set DumpTemplateVars Dumper options for Indent and Sort
To test:
1 - Enable sysprefs
    DumpTemplateVarsOpac
    DumpTemplateVarsIntranet
2 - View some pages on staff client and opac
3 - View the page source
4 - See a large mass of comments including the page vars at the top of the source
5 - Refresh page and note order of vars changes
6 - Apply patch
7 - View page source on some pages and note things are much easier to read
8 - Refresh page and note variable order does not change

Signed-off-by: George Williams <george@nekls.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-03-02 10:08:31 +00:00

26 lines
777 B
HTML

<!DOCTYPE html>
<!-- TEMPLATE FILE: [% template.name.split('/').last | html %] -->
[% USE Koha %]
[% USE raw %]
[% IF Koha.Preference('DumpTemplateVarsIntranet') %]
[% TRY %]
[% USE Stash %]
[% USE Dumper( Indent=1, SortKeys=1 ) %]
<!--
[% 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>