NAME
Kernel::Output::HTML::Layout::Loader – CSS/JavaScript
DESCRIPTION
All valid functions.
PUBLIC INTERFACE
LoaderCreateAgentCSSCalls()
Generate the minified CSS files and the tags referencing them, taking a list from the Loader::Agent::CommonCSS config item.
$LayoutObject->LoaderCreateAgentCSSCalls(
Skin => 'MySkin', # optional, if not provided skin is the configured by default
);
LoaderCreateAgentJSCalls()
Generate the minified JavaScript files and the tags referencing them, taking a list from the Loader::Agent::CommonJS config item.
$LayoutObject->LoaderCreateAgentJSCalls();
LoaderCreateJavaScriptTemplateData()
Generate a minified file for the template data that needs to be present on the client side for JavaScript based templates.
$LayoutObject->LoaderCreateJavaScriptTemplateData();
LoaderCreateJavaScriptTranslationData()
Generate a minified file for the translation data that needs to be present on the client side for JavaScript based translations.
$LayoutObject->LoaderCreateJavaScriptTranslationData();
SkinValidate()
Returns 1 if skin is available for Agent or Customer frontends and 0 if not.
my $SkinIsValid = $LayoutObject->SkinValidate(
UserType => 'Agent' # Agent or Customer,
Skin => 'ExampleSkin',
);