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.
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)
cnx-easybake poc.css poc-raw.html poc-cooked.html
Test files are available on in the tests folder.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|File Name & Checksum SHA256 Checksum Help||Version||File Type||Upload Date|
|cnx-easybake-0.6.0.tar.gz (10.6 kB) Copy SHA256 Checksum SHA256||–||Source||Dec 15, 2016|
|cnx-easybake-0.6.0.zip (14.1 kB) Copy SHA256 Checksum SHA256||–||Source||Dec 15, 2016|