class documentation

class StaticTemplate(Template): (source)

Constructor: StaticTemplate(name, data)

View In Hierarchy

Static template: no rendering, will be copied as is to build directory.

For CSS and JS templates.

Method __init__ Undocumented
Method write Directly write the contents of this static template as is to the build dir.
Instance Variable data Contents of the template file as bytes.

Inherited from Template:

Class Method fromdir Scan a directory for templates.
Class Method fromfile Create a concrete template object. Type depends on the file extension.
Instance Variable name Template filename, may include subdirectories.
def __init__(self, name: str, data: bytes): (source)
def write(self, build_directory: Path): (source)

Directly write the contents of this static template as is to the build dir.

Contents of the template file as bytes.