Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

jifty::plugin::compressedcssandjs(3pm) [debian man page]

Jifty::Plugin::CompressedCSSandJS(3pm)			User Contributed Perl Documentation		    Jifty::Plugin::CompressedCSSandJS(3pm)

NAME
Jifty::Plugin::CompressedCSSandJS - Compression of CSS and javascript files SYNOPSIS
# In your jifty config.yml under the framework section: Plugins: - CompressedCSSandJS: js: 1 css: 1 jsmin: /path/to/jsmin cdn: 'http://yourcdn.for.static.prefix/' skipped_js: - complex.js generate_early: 1 DESCRIPTION
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. generate_early tells the plugin to compress the CSS and JS at process start rather than on the first request. This can save time, especially if your JS minifier is slow, for the poor sucker who makes the first request. Enabled by default. init Initializes the compression object. Takes a paramhash containing keys 'css' and 'js' which can be used to disable compression on files of that type. js_enabled Returns whether JS compression is enabled (which it is by default) css_enabled 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. minify_js $js Runs the given JS through jsmin wrap psgi app wrapper to serve url controlled by us perl v5.14.2 2010-09-25 Jifty::Plugin::CompressedCSSandJS(3pm)

Check Out this Related Man Page

Jifty::Plugin::CSSQuery(3pm)				User Contributed Perl Documentation			      Jifty::Plugin::CSSQuery(3pm)

NAME
Jifty::Plugin::CSSQuery - use the cssQuery JavaScript library with Jifty SYNOPSIS
In your etc/config.yml: framework: Plugins: - CSSQuery: {} DESCRIPTION
cssQuery() is a powerful cross-browser JavaScript function that enables querying of a DOM document using CSS selectors. All CSS1 and CSS2 selectors are allowed plus quite a few CSS3 selectors. This is a Jifty plugin that let you use cssQuery javascript library in your Jifty application. cssQuery has been bundle with Jifty for a long time, for Jifty use it internally. Now it's been replaced with jQuery. It's now a plugin for backward compatibility. It is disabled by default, unless your "ConfigFileVersion" is smaller or equal then 2. For more information about cssQuery, see <http://dean.edwards.name/my/cssQuery/>. METHODS
init This initializes the plugin, which simply includes the JavaScript necessary to load cssQuery, and gets rid of the cssQuery-jquery back- compat script. SEE ALSO
<http://jifty.org>, <http://dean.edwards.name/my/cssQuery/> COPYRIGHT AND LICENSE
This plugin is Copyright 2007 Handlino, Inc. It is available for modification and distribution under the same terms as Perl itself. cssQuery is available for use in all personal or commercial projects under both MIT and GPL licenses. This means that you can choose the license that best suits your project and use it accordingly. See <http://jifty.com/> for current information on cssQuery copyrights and licensing. perl v5.14.2 2010-12-08 Jifty::Plugin::CSSQuery(3pm)
Man Page