Skip to main content

hurry.resource style resources for jQuery.

Project description

hurry.jquery

Introduction

This library packages jQuery for hurry.resource. It is aware of jQuery’s structure and different modes (normal, minified).

How to use?

You can import jQuery from hurry.jquery and .need it where you want these resources to be included on a page:

from hurry.jquery import jquery

.. in your page or widget rendering code, somewhere ..

jquery.need()

This requires integration between your web framework and hurry.resource, and making sure that the original resources (shipped in the jquery-build directory in hurry.jquery) are published to some URL.

The package has already been integrated for Grok and Zope 3. If you depend on the hurry.zoperesource package in your setup.py, the above example should work out of the box. Make sure to depend on the hurry.zoperesource package in your setup.py.

Preparing hurry.jquery before release

This section is only relevant to release managers of hurry.jquery.

When releasing hurry.jquery, an extra step should be taken. Follow the regular package release instructions, but before egg generation (python setup.py register sdist upload) first execute bin/jqueryprepare. This will download the jQuery library and place it in the egg. (The version number is currently hardcoded in the hurry.jquery.prepare module).

CHANGES

1.4.2.2 (2010-07-28)

  • Relying on new hurry.resource 0.10, which needs an entry point.

  • Export jquery_lib as the library. Before this change library was not accessible as it was immediately overwritten by the jquery ResourceInclusion. This means that jquery resources will now be published under jquery_lib in the URL instead of jquery, but since these URLs are automatically generated this should be okay.

1.4.2.1 (2010-03-14)

  • Using jQuery-1.4.2.

  • Added zest.releaser and using its prerelease-entrypoint to assure download of the jquery libary before release. No functional changes.

1.3.2.1 (2009-05-27)

  • Initial public release, using jQuery-1.3.2.

Download

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hurry.jquery-1.4.2.2.tar.gz (78.4 kB view details)

Uploaded Source

File details

Details for the file hurry.jquery-1.4.2.2.tar.gz.

File metadata

File hashes

Hashes for hurry.jquery-1.4.2.2.tar.gz
Algorithm Hash digest
SHA256 c3a453f12b81686a601516564c792a5812d0710bf0f9f7a52f215cfe14cc982a
MD5 b174c87022323a01deb59fa121825ea5
BLAKE2b-256 9529e2c9beb39d8c3de43f0c430e147ea07cbeed26a9cf5bde32613a1c23b992

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page