vgs_rss ([info]vgs_rss) wrote,
@ 2007-04-03 14:04:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
pack:tag: Compressing JSP Taglib
13:26 03.04.2007
pack:tag: Compressing JSP Taglib

pack:tag is a static-resource compressing JSP-Taglib. It caches ad hoc compressed JavaScript or CSS in memory (in a Java Servlet) or in a generated file. It works transparently to the developer and the compressing-algorithms are pluggable.

Features

  • Minification of JavaScript and Cascading Style Sheets
  • Caching to filesystem or memory (servlet)
  • When caching to memory, the minified content is additional gzipped
  • Apache Standard Taglib support for evaluations
  • Compression and hashcode-generation adjustable on single resources

Examples

You would use JSP tags such as the following in your JSP files:

HTML:
  1.  
  2. <pack :script src="myJavaScriptFile.js"/></a>
  3. <pack :style src="myCascadingStyleSheet.css"/></a>
  4. <pack :script src="myJavaScriptFile.js" enabled="false"/></a>
  5.  


read more at Ajaxian



Create an Account
Forgot your login?
Login w/ OpenID
English • Español • Deutsch • Русский…