Skip to main content

No project description provided

Project description

Easybake is a library (and cli tool) for using an extended subset of CSS3 to describe and ‘bake-in’ some manipulations of HTML files, in particular collation (moveing content around) and numbering.

INSTALL

To install cnx-easybake:

python setup.py install

Primarily for use as a library to process etree HTML trees. Example:

from lxml import etree
from cnxeasybake import Oven

oven = Oven(myRuleSet)  # an CSS3 based ruleset - see docs

myHTML = etree.HTML(myHTMLstring)
oven.bake(myHTML)

Example usage:

cnx-easybake poc.css poc-raw.html poc-cooked.html

Test files are available on in the tests folder.

Project details


Download files

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

Source Distributions

cnx-easybake-0.6.0.zip (14.1 kB view hashes)

Uploaded Source

cnx-easybake-0.6.0.tar.gz (10.6 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