This is an implementation of a new tag for the OpenCms taglib that can automatically condense JavaScript and CSS code. The tag is used by enclosing a block of CSS of JavaScript with it, for example:
<cms:minify type="js">
function myFunc() {
myVar = 123;
alert( myVar );
}
</cms:jsminify>
The result in this case would be:
"function myFunc(){a=123;alert(a)}"
The minification is done through the excellent Yahoo YUI compressor (http://developer.yahoo.com/yui/compressor/) which is also used by the jQuery project and which is, for example, able to condense variable names.
| Module Version: | 1.0 |
| Provided By: | Christian Steinert |
| License: | LGPL |
| Click here to download (820 kb) | |
OpenCms Version 8.5.1 is available!
OpenCms 8.5.1 is an update which improves the content editor functionality as well as the Solr integration. This version also fixes a lot of issues that persisted in the 8.5.0 release.
Download OpenCms 8.5.1 for free.
Size:110242KB
Update your existing OpenCms installation to version 8.5.1 with the easy to use upgrade wizard.
Size:99450KB
Our guided tour shows you the great features OpenCms offers.
© Alkacon Software GmbH - http://www.alkacon.com - Terms of use - Impressum