class documentation

class StaticTemplate(Template):

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, data):

Undocumented

Parameters
name:strUndocumented
data:bytesUndocumented
def write(self, build_directory):
Directly write the contents of this static template as is to the build dir.
Parameters
build​_directory:PathUndocumented
data: bytes =
Contents of the template file as bytes.