[%# Parameters we are expecting: ============================ is_ng: boolean, used to change the url calculation rules for angular 7 apps built using the ng cli tool via webpack. You need this since the build products from ng cli do not use the .min suffix for minified files. is_jupiter_style: boolean, used to opt into the new jupiter styles for globally available page styles, rather than the older style system which includes master-ltr/ master-rtl and ux-styles hide_header: boolean, used to hide the page header 1 to hide, 0 to show; 0 by default hide_license_warnings: boolean, used to hide trial/dev license banners 1 to hide, 0 to show; 0 by default hide_main_menu: boolean, used to hide the main menu 1 to hide, 0 to show; 0 by default hide_quicklinks: boolean, used to hide the quicklinks section 1 to hide, 0 to show; 0 by default include_legacy_stylesheets: boolean, used to include legacy stylesheets on the page; 1 by default include_legacy_scripts: boolean, used to include legacy javascript sections; 1 by default include_cjt: boolean, used to include cjt; 1 by default app_key: The key used to lookup application information in dynamicui.conf. Hides page heading if the app_key is not defined. page_title: string, displayed as part of the browser title, preceded by cPanel. Defaults to application description from dynamicui.conf e.g. cPanel - page_sub_heading: sub heading for page header. SSL meta: a string containing meta tags to be injected after the master template meta tags. Highly recommend using a Template Toolkit block and processing the block to get the output into a string. embed_stylesheets: array containing the server path of stylesheets specific to your page that will be included with the INSERT directive. embed_scripts: array containing the server path of scripts specific to your page that will be included with the INSERT directive. page_stylesheets: array containing the path of stylesheets specific to your page that must be relative to the root of the theme. page_scripts: array containing the path of scripts specific to your page that must be relative to the root of the theme. page_styles: a string containing a [%- END -%] [%- # Page specified [% END -%] [%# TODO: This will cause double loading of CLDR data and functions on pages where CJT2 or YUI is used, as their bundles load CLDR as well. We may be able to conditionally exclude these cases as an optimization in later iterations. %] [% page_scripts = page_scripts || []; page_scripts.unshift("core/web-components/dist/jupiter-web-components.cmb.js"); %] [%- # Page specified [% END; END -%] [%- # Page specific javascript embedded in initial request -%] [%- IF embed_scripts AND authorized_to_access %] [%- END %] [%- # Page specified [% IF is_ng %] [% END %] [% IF !CPANEL.is_debug_mode_enabled(); %] [% ELSE %] [% END %]