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 18 adds a new "Place element" mode in the page editor that allows precise element placement as an alternative to drag & drop. Reused content is now clearly marked. Automatic typographical correction of quotation marks has been added to all of the editors. “Dead links” in content that is entered in a WYSIWYG editor are now automatically disabled. Our Mercury template includes several new features, such as setting different image formats for mobile and desktop and many more.
Size:249633KB
Update your existing OpenCms installation to the current stable version 18 with the easy to use upgrade wizard.
Size:206043KB
Our guided tour shows you the great features OpenCms offers.
Do you want to take a quick test drive of OpenCms to get an impression of its great features? Try out the OpenCms Live Demo website available at http://demo.opencms.org
© Alkacon Software GmbH & Co. KG - http://www.alkacon.com - Terms of use - Impressum - Privacy policy