An open API service indexing awesome lists of open source software.

https://github.com/mudge/asset_compressor

A Rails plugin to compress stylesheets and JavaScript with the YUI Compressor.
https://github.com/mudge/asset_compressor

Last synced: 9 months ago
JSON representation

A Rails plugin to compress stylesheets and JavaScript with the YUI Compressor.

Awesome Lists containing this project

README

          

AssetCompressor
===============

Based on both AssetPackager and Rails 2.0's built-in asset caching
capabilities, this plugin will concatenate and compress any specified
Javascript and Cascading Style Sheets using Yahoo!'s excellent YUI Compressor.

To use, instead of using Rails' own `javascript_include_tag` and
`stylesheet_link_tag`, use `javascript_include_compressed` and
`stylesheet_link_compressed` like so:

<%= javascript_include_compressed 'compressed_javascript.js', 'javascript.js', 'javascript2.js' %>

Copyright (c) 2007 Paul Mucur, released under the MIT license

YUI Compressor is Copyright (c) 2006 Yahoo! Inc. All rights reserved. See YUI-COMPRESSOR-LICENSE.txt for more information.