Webhelpers CSS and JavaScript Minification Upgrade to WebHelpers
Project description
What is MinificationWebHelpers?
===============================
Consider the MinificationWebHelpers_ as an extension to WebHelpers_.
Basicly it adds two more options to the WebHelpers_ javascript_include_tag_
and stylesheet_link_tag_ functions:
* **minified**: Minifies, ie, reduces as much as possible each of the files
passed to it's minimum size to reduce page load times.
* **combined**: Joins all files passed into a single one to reduce server
requests which in turn reduces page load times.
For an up-to-date read of the documentation, please `read the documentation
page on site`__.
Usage
-----
On your own Pylons_ application, inside ``<app>/lib/helpers.py`` you add::
from minwebhelpers import *
Then, inside a template you could have::
<head>
${ h.javascript_include_tag('/js/file1.js', '/js/file2.js',
minified=True, combined=True )}
</head>
The above would mean ``file1.js`` and ``file2.js`` would be combined and then
minimized.
Instalation
-----------
It's as easy as::
sudo easy_install MinificationWebHelpers
Or if you wish to install current trunk::
sudo easy_install
http://pastie.ufsoft.org/svn/sandbox/MinificationWebHelpers/trunk
.. _MinificationWebHelpers: http://pastie.ufsoft.org/wiki/MinificationWebHelpers
.. _WebHelpers: http://pylonshq.com/WebHelpers/module-index.html
.. _javascript_include_tag:
http://pylonshq.com/WebHelpers/module-webhelpers.rails.asset_tag.html#javascript_include_tag
.. _stylesheet_link_tag:
http://pylonshq.com/WebHelpers/module-webhelpers.rails.asset_tag.html#stylesheet_link_tag
.. _Pylons: http://pylonshq.com
.. __: http://pastie.ufsoft.org/wiki/MinificationWebHelpers
===============================
Consider the MinificationWebHelpers_ as an extension to WebHelpers_.
Basicly it adds two more options to the WebHelpers_ javascript_include_tag_
and stylesheet_link_tag_ functions:
* **minified**: Minifies, ie, reduces as much as possible each of the files
passed to it's minimum size to reduce page load times.
* **combined**: Joins all files passed into a single one to reduce server
requests which in turn reduces page load times.
For an up-to-date read of the documentation, please `read the documentation
page on site`__.
Usage
-----
On your own Pylons_ application, inside ``<app>/lib/helpers.py`` you add::
from minwebhelpers import *
Then, inside a template you could have::
<head>
${ h.javascript_include_tag('/js/file1.js', '/js/file2.js',
minified=True, combined=True )}
</head>
The above would mean ``file1.js`` and ``file2.js`` would be combined and then
minimized.
Instalation
-----------
It's as easy as::
sudo easy_install MinificationWebHelpers
Or if you wish to install current trunk::
sudo easy_install
http://pastie.ufsoft.org/svn/sandbox/MinificationWebHelpers/trunk
.. _MinificationWebHelpers: http://pastie.ufsoft.org/wiki/MinificationWebHelpers
.. _WebHelpers: http://pylonshq.com/WebHelpers/module-index.html
.. _javascript_include_tag:
http://pylonshq.com/WebHelpers/module-webhelpers.rails.asset_tag.html#javascript_include_tag
.. _stylesheet_link_tag:
http://pylonshq.com/WebHelpers/module-webhelpers.rails.asset_tag.html#stylesheet_link_tag
.. _Pylons: http://pylonshq.com
.. __: http://pastie.ufsoft.org/wiki/MinificationWebHelpers
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Close
Hashes for MinificationWebHelpers-0.1.0.zip
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b0f5bd0ec8b2af80a12a2c988c85f6cfc6ab86c4ec1b998a186b2e84de84c2d |
|
MD5 | 0ad3e15a25abf94e01373fb904f7c458 |
|
BLAKE2b-256 | c7530643bd9c567b80823a0a74599176c652c6ce3ad07063f2133a83a3b567b2 |
Close
Hashes for MinificationWebHelpers-0.1.0.tar.bz2
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7cff019a7d7257b693ccc73b41a107e2d64d3f1551809cb3b44ee7b4d0a7551 |
|
MD5 | 95bc589099be7f5de937c03c202cfde9 |
|
BLAKE2b-256 | 89b67b2a25f31446671db09dbd05db9cbeb1fba5ca1b634332e3d67e582daab5 |