Skip to main content

Deliverance rewrites HTML to add theming

Project description

Deliverance rewrites HTML pages to theme the pages – adding things like navigation, stylesheets, and applying a common look-and-feel to content from a variety of sources.

Unlike typical templating systems, Deliverance works only on HTML; there’s no variables to substitute or Python structures involved. It takes a simple set of rules and applies these to the HTML, so you can style the output of pages regardless of where the page comes from.

The theme itself is an HTML page with zero code in it. It is simply an example of what a page should look like; this makes it accessible to designers or any kind of tool, and may itself even be dynamically generated. For instance, you might use a blog page as a theme, and wrap that theme around a wiki to give the two a common look and feel.

The rules are written in an XML format, that looks something like:

<rules xmlns:xi="http://www.w3.org/2001/XInclude"
       xmlns="http://www.plone.org/deliverance" >
  <xi:include href="standardrules.xml" />
  <copy theme="//div[@id='container']"
        content="//*[@id='portal-columns']" />
</rules>

This example, in addition to doing the ‘standard’ things (which includes merging the <head> of both pages) also copies the tag <div id="portal-columns"> into the theme page’s <div id="container">.

Deliverance is implemented as both a rendering object and WSGI middleware. Included in the package is a script that uses the WSGI middleware as an HTTP proxy.

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

Deliverance-0.1.tar.gz (94.4 kB view details)

Uploaded Source

Built Distributions

Deliverance-0.1-py2.5.egg (200.0 kB view details)

Uploaded Egg

Deliverance-0.1-py2.4.egg (201.9 kB view details)

Uploaded Egg

File details

Details for the file Deliverance-0.1.tar.gz.

File metadata

  • Download URL: Deliverance-0.1.tar.gz
  • Upload date:
  • Size: 94.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Deliverance-0.1.tar.gz
Algorithm Hash digest
SHA256 75425e9d891ccc1eaefa4b42a3af3500af6f033931cecddd77797eed354786ac
MD5 afde511cc7e02b81e671ef657f8cd677
BLAKE2b-256 3127f3c116e947e4ca2b38eac7630915f8610978882cc29f379f817926d76079

See more details on using hashes here.

File details

Details for the file Deliverance-0.1-py2.5.egg.

File metadata

File hashes

Hashes for Deliverance-0.1-py2.5.egg
Algorithm Hash digest
SHA256 2f0a4db1eeae0d4c5d0643d4e17a410c6d15d9dbceaf902e129566e9026672b3
MD5 36cf6d782e16f535c1d87b6cd80f7ce3
BLAKE2b-256 2742298eb5d5901b67f48e7361f98938982102ffa4e54739452e74dfadcd64c1

See more details on using hashes here.

File details

Details for the file Deliverance-0.1-py2.4.egg.

File metadata

File hashes

Hashes for Deliverance-0.1-py2.4.egg
Algorithm Hash digest
SHA256 0186e0b8db1c5a712b543afbd2e581427ef6ef5585a8763b87cdf1dfc8a88031
MD5 a7ba77c8ad4252553532fbc965883ea5
BLAKE2b-256 6ec89495bc958fa60b7686dc3e36fb5e7f1fa37e5a0737bcd42a1fdc8fdc576f

See more details on using hashes here.

Supported by

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