Sources¶
-
class
bkgen.source.Source(fn=None, data=None, **args)[source]¶ Bases:
bl.file.FileBase class/mixin for supported source formats. All sources must have the following properties and methods.
- fn
- the filesystem path (filename) of the source, or None
- write()
- to write the source to the filesystem
-
documents()[source]¶ returns a list of XML documents, with the root element tag pub:document, from the Source.
-
metadata()[source]¶ returns a bkgen.metadata.Metadata object provided by the Source, or None.
-
stylesheet()[source]¶ returns a bkgen.css.CSS stylesheet object provided by the Source, or None.