bobf is sharing code with you

Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.

Don't show this again

bobf / MinificationWebHelpers (fork of iElectric / minificationwebhelpers)

Fork to add support for timestamp-versioning of combined files (to force refreshing of cached files on remote end).

Clone this repository (size: 76.7 KB): HTTPS / SSH
hg clone https://bitbucket.org/bobf/minificationwebhelpers
hg clone ssh://hg@bitbucket.org/bobf/minificationwebhelpers

MinificationWebHelpers overview

Recent commits See more »

Author Revision Comments Message Labels Date
bobf eb7917f7b4ea scrap the old method of creating and emptying hidden directories and just stick a ?t=2183912839 timestamp to end of href
bobf cfc18025abd6 make combined files be stored in a separate .COMBINED directory off the root
bobf 230813dbaaf6 make combined files have the option of having a %(timestamp)s variable in the
iElectric cf558c6037f0 Added tag 0.3.4 for changeset 21cb3014941e
iElectric 21cb3014941e version bump
Tag
0.3.4
What is MinificationWebHelpers?
===============================

Consider the MinificationWebHelpers_ as an extension to WebHelpers_.

Basicly it adds two more options to the WebHelpers_ javascript_link_
and stylesheet_link_ functions:

* **minified** (bool): Minifies, ie, reduces as much as possible each of the files
  passed to it's minimum size to reduce page load times.
* **combined** (bool): Joins all files passed into a single one to reduce server
  requests which in turn reduces page load times.
* **beaker_kwargs** (dict): override default arguments that will be passed to `beaker_cache`.  `beaker_kwargs.update()` is issued on default arguments.
* **combined_filename** (string): Name of the filename that will be used in conjunction with combined=True

For an up-to-date read of the documentation, please `read the documentation
page on site`__.

Mercurial repository is located at bitbucket.org_.

.. _MinificationWebHelpers: http://docs.fubar.si/minwebhelpers/
.. _WebHelpers: http://pylonshq.com/docs/en/0.9.7/thirdparty/webhelpers/
.. _javascript_link: http://pylonshq.com/docs/en/0.9.7/thirdparty/webhelpers/html/html/#webhelpers.html.tags.javascript_link
.. _stylesheet_link: http://pylonshq.com/docs/en/0.9.7/thirdparty/webhelpers/html/html/#webhelpers.html.tags.stylesheet_link
.. _bitbucket.org: http://bitbucket.org/iElectric/minificationwebhelpers/
.. __: http://docs.fubar.si/minwebhelpers/