Decorate HTML docs by adding them classes by theme
Decorate takes an HTML and decorates it with style.
Currently it just support Bootstrap, but it is built in order to allow any other framework.
How does it work
It parses the HTML, uses a set of rules and creates a new HTML with new classes.
- It is faster. You have just to run it once.
- It can be used in third parties projects. Forget about the style from now on.
What was it intended for?
I was writting a static test runner, and I decided not to tie it to any style. This was a spin off. Indeed, it could be run as command line…
Please, run the help command with -h.
Here you are a basic example:
decorate my.html -t bootstrap -o output
Easy: just import and use it:
from decorate import Decorate decorate = Decorate('bootstrap') with open('my.html') as fd: decorate.apply_to(fd.read(), 'output.html')
Release history Release notifications
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size & hash||File type||Python version||Upload date|
|decorate-1.0.1-py3-none-any.whl (9.1 kB) View hashes||Wheel||3.5|