HTML exporter for human consumption
Warning
THIS MODULE DOES NOT HAVE A STABLE PUBLIC API
A helper class to inline resources referenced in an lxml tree.
Replace references to external resources by an in-place (inlined) representation of each resource.
Currently images, stylesheets and scripts are inlined.
Only local (i.e. file) resources/locations are supported. If a non-local resource is requested for inlining, it will be removed (replaced by a blank string), with the goal that the resulting lxml tree will not reference any unreachable resources.
Parameters: | document_tree – lxml tree to process. |
---|---|
Returns: | lxml tree with some elements replaced by their inlined representation. |
Session state exporter creating HTML documents.
It basically applies an xslt to the XMLSessionStateExporter output, and then inlines some resources to produce a monolithic report in a single file.
Dumps the given lxml root tree into the given stream, by applying the provided xslt. If template_substitutions is provided, the xslt will first be processed as a string.Template with those substitutions.
Parameters: |
|
---|