Skip to main content

Content delivery network Concept supporting resource offload

Project description

The p01.recipe.cdn:app recipe generates a script which is able to extract content delivery resources defined by the p01.cdn meta directives from a project to a given folder. Additional there is a minify recipe which generates a minify script which is able to collect resources from a local project or released python packages, minify and bundle them. And there is a glue recipe which is able to generate sprite images. In short words, three is everything you will need to generate and extract resources for a content delivery network.

Detailed Documentation

README

This buildout recipe package offers 3 different concepts. This 3 concept allows you to reduce the resources size and offload the resources from your application server. The nice thing is, that you can start your application with different configurations if you like to server the minified and static or the local non monified resource versions. The p01.cdn package also offers a version manager which allows to use different resource versions.

sprites

The first concept allows to generate sprite images and the relevant css styles pointing to the right sprite background position. This recipe uses the spritemapper python package

minify

The second concept allows to minify javascript or CSS files. The recipe supports the following python minify libraries.

jsmin: http://pypi.python.org/pypi/jsmin lpjsmin: http://pypi.python.org/pypi/lpjsmin slimit: http://pypi.python.org/pypi/slimit cssmin: http://pypi.python.org/pypi/cssmin

content delivery network

The third concept allows to extract CDN (content delivery network) resources based on p01.cdn into a folder structure.

CHANGES

0.5.2 (2013-03-19)

  • feature: support skip option in extract recipe. This allows to define a list of filenames thcih get not extracted to the output. This allows to skip the source files from get deployed to the cdn output folder.

  • feature: support slimit mangle, mangle_toplevel and cssmin wrap options. You can use them as slimit_mangle, slimit_mangle_toplevel and cssmin_wrap in your buildout.

0.5.1 (2013-01-28)

  • improve error handling, show traceback from executed method

0.5.0 (2012-11-16)

  • initial release

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

p01.recipe.cdn-0.5.2.zip (45.4 kB view hashes)

Uploaded Source

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