GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Jifty::Plugin::CompressedCSSandJS(3) User Contributed Perl Documentation Jifty::Plugin::CompressedCSSandJS(3)

Jifty::Plugin::CompressedCSSandJS - Compression of CSS and javascript files

# In your jifty config.yml under the framework section:

  Plugins:
    - CompressedCSSandJS:
        js: 1
        css: 1
        jsmin: /path/to/jsmin
        skipped_js:
            - complex.js

This plugin provides auto-compilation and on-wire compression of your application's CSS and Javascript. It is enabled by default, unless your "ConfigFileVersion" is greater or equal than 2.

It also supports js minifier, you will need to specify the full path. The jsmin can be obtained from <http://www.crockford.com/javascript/jsmin.html>.

Note that you will need to use "ConfigFileVersion" 2 to be able to configure jsmin feature.

skipped_js is a list of js that you don't want to compress for some reason.

Initializes the compression object. Takes a paramhash containing keys 'css' and 'js' which can be used to disable compression on files of that type.

Returns whether JS compression is enabled (which it is by default)

Returns whether CSS compression is enabled (which it is by default)

generate_css

Checks if the compressed CSS is generated, and if it isn't, generates and caches it. (In devel mode, it always regenerates it)

generate_javascript

Checks if the compressed JS is generated, and if it isn't, generates and caches it.

_generate_javascript_nocache

Generates compressed javascript, ignoring the cache completely.

Runs the given JS through jsmin

If a JS or CSS file references another by a relative path, it will most likely end up being mis-requested under the CAS directory. Catch those requests, warn about them, and re-dispatch them internally to what is likely the right place.
2013-02-18 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.