Package DE_EPAGES::Dojo::API::Shrinksafe
This module provides an API for creating dojo shrinksafe builds.
@EXPORT_OK |
Functions
RunDojoShrinksafe
This procedure creates the dojo shrinksafe build depending on its params.
Syntax |
RunDojoShrinksafe($hParams); |
Input |
|
UpdateChangedFiles
Updates the content of the given $hHotFix hash ref. After aquiring the javascript class name from the given $HFFile javascript file name this string is searched for inside the list of dependencies inside the given shrinksafe layer. If found, the corresponding layer name and the actual javascript class is added to the changedFiles array - which later marks the list of changed files for the hotfix.
Syntax |
%Hash = %{UpdateChangedFiles($FileName, $hLayer, $hConfigValues, \%Hash)}; |
Example |
%HotFix = %{UpdateChangedFiles($HFFile, $hLayer, $hConfigValues, \%HotFix)}; |
Input |
|
Return |
|
widgetFilePathToJSClass
Converts a file name like: "Cartridges/DE_EPAGES/Dojo/Data/Public/javascript/epages/widget/Elementlist.js" or "Cartridges/DE_EPAGES/MediaGallery/Data/javascript/widget/Filelistitem.js" or "U Cartridges/DE_EPAGES/MediaGallery/Data/javascript/widget/Filetree.js" into the corresponding javascript class name used in the layer dependencies like: "epages.widget.Elementlist" or "epages.cartridges.de_epages.mediagallery.widget.Filelistitem" "epages.cartridges.de_epages.mediagallery.widget.Filetree"
Syntax |
my $JSClassName = widgetFilePathToJSClass($JSFileName); |
Input |
|
Return |
|