OpenWGA 7.5 - OpenWGA Concepts and Features
Design and developmentJavaScript and CSS
JavaScripts and CSS are resources to be used client side - in the browser. You typically define those resources in design folder scripts/js (JavaScripts) and scripts/css (CSS). In some cases it makes also sence to define such resoures in file container.
In its simplest form those resources are not interpreted by OpenWGA and are send to the browser "as is". That is if the js resources have file extension .js and css resources have file extension .css. OpenWGA however has implemented "preprocessors" that are executed if other file extensions are used. For example OpenWGA interprets a resource as SCSS code if a file extension .scss is used and a JSMIN processor that is able to concat and compress JavaScript resources.
JavaScripts are send to the browser when your design contains something like
<script src="<tml:url type="js" name="my-script"/>"></script>
CSS Styles are send to the browser when your design contains something like
<link rel="stylesheet" type="text/css" href="<tml:url type="css" name="my-styles"/>">