Deliverance transforms HTML to theme pages
Project description
Deliverance does transformations of HTML to ‘theme’ pages, similar in function to XSLT but using a simpler XML-based language to express the transformation.
New in this release:
The paste.deploy configuration and middleware factory now accept a theme_uri parameter.
If used, this will be the global default theme uri. It will be used if no theme is defined within the ruleset.
Internal subrequests that return non-200 response codes are now retried as external HTTP requests. (#16)
Request/response matching in <rule> elements now work. (#6)
<meta http-equiv=”Content-Type”> tags are no longer stripped from documents. Instead, they are always included in the output of Deliverance, with a default charset of ASCII. (#34)
CDATA sections in XHTML documents are left as-is instead of being incorrectly escaped. (#36)
Before applying the rules, Deliverance now moves the <meta> tag with a charset declaration to be the first child of the <head> element, if both are present. This ensures that non-ASCII characters in the <head> are converted to the correct HTML sequences. (#12)
There is now a garbage-collecting WSGI middleware deliverance.garbagecollect, disabled by default, which calls gc.collect() after every request. This was added after a report (unconfirmed) of potential memory leaks when using some versions of lxml. (#22)
You can use it with deliverance-proxy –garbage-collect or, in paste.deploy configurations, filter your app with use = egg:Deliverance#garbagecollect.
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 Distribution
File details
Details for the file Deliverance-0.3c3.tar.gz
.
File metadata
- Download URL: Deliverance-0.3c3.tar.gz
- Upload date:
- Size: 425.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2caaffd96824cc6ed231844fb619bd26d2649073c1b3b943bd728b6328f21ee6 |
|
MD5 | e2acedb6da8b67fcaa5f98bf6170eeef |
|
BLAKE2b-256 | 7f602cd6993faa17fc209c22484993cb7ad55e6298ca279c8f693bfbbb844c34 |