Skip to main content

z3c.resourceinclude like support for Silva 2.3

Project description

silva.resourceinclude collect and merge resources files (CSS, KSS, JS) on layers. It was based on z3c.resourceinclude. It’s used by silva.core.layout to easily include resources in Silva themes for Silva 2.x. In Silva 3, silva.fanstatic replaces this extension.

It provides as well a full implementation of the Zope resource export mechanism for Zope 2, that properly implement HEAD requests and are optimized for caching purpose.

Please refer to the official Silva documentation to see how to use it.

Code repository

You can find the source code for this extension in Git: https://github.com/silvacms/silva.resourceinclude

Changes

2.2.1 (2010/12/20)

  • Prevent a bug with Grok if CHAMELEON_DEBUG is set.

  • Improve resources merging to prevent where some resources where not included in the merged version.

2.2 (2010-10-27)

  • Resource merging is now done when the server is starting. That prevent issues in case of multi Zope instance installation. Usefull logging is done to know what is merged and how.

  • Support for the directive only_for have been added. It is the equivalent of the context option used with ZCML directives.

2.1 (2010-10-07)

  • Bug fix on windows: fix merged resources to be able to properly access other relatives resources.

  • Bug fix on windows: fix mode used to open files in order to fully get all resource data out of them.

  • Vary cache key on HTTP_HOST for the resource include provider (that let you access the same site with different hostname and get URL for the hostname you asked in your response).

  • plone.memoize is replaced with silva.core.cache.

  • It is now to include a ressource only for a given content. The ZCML is extended with a context option that let you do that.

  • A new ZCML directive called resourceLayerInclude let you reinclude for a different layer and content a list of resources defined on an interface with the martian directive.

2.0 (2010/07/15)

  • Implement resources export, and use it,

  • Improve caching (HTTP headers, HEAD requests, 304),

  • Update syntax and imports for Zope 2.12 and Python 2.6.

1.0b2 (2009/12/09)

  • Refactor merged resources code.

  • Fix a thread safe issue.

  • Don’t depend anymore on z3c.resourceinclude.

  • Improve caching.

1.0b1 (2009/11/18)

  • Add the resource grokker.

  • Fix various bugs from the previous version.

1.0a1 (2008/11/17)

  • 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

silva.resourceinclude-2.2.1.tar.gz (20.2 kB view details)

Uploaded Source

File details

Details for the file silva.resourceinclude-2.2.1.tar.gz.

File metadata

File hashes

Hashes for silva.resourceinclude-2.2.1.tar.gz
Algorithm Hash digest
SHA256 4bddcf40f560fc56107207081d1d95604da104540f85091ad4936364b33a34fd
MD5 90f9989b3d8fd44c4d6ff8c25156998b
BLAKE2b-256 041fdc8badc516f287881c9c9d55fe5302a4342fc6fbf71b9685a771b1203b15

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