class documentation

class HtmlTemplate(Template):

View In Hierarchy

HTML template that works with the Twisted templating system and use xml.dom.minidom to parse the pydoctor-template-version meta tag.
Method __init__ Undocumented
Instance Variable loader Object used to render the final HTML file with the Twisted templating system.
Instance Variable text Contents of the template file as UFT-8 decoded str.
Instance Variable version Template version, -1 if no version could be read in the XML file.
Static Method ​_extract​_version Undocumented
Instance Variable ​_dom Undocumented

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

Undocumented

Parameters
name:strUndocumented
text:strUndocumented
loader: ITemplateLoader =

Object used to render the final HTML file with the Twisted templating system.

This is a ITemplateLoader.

text =
Contents of the template file as UFT-8 decoded str.
version: int =

Template version, -1 if no version could be read in the XML file.

HTML Templates should have a version identifier as follow:

    <meta name="pydoctor-template-version" content="1" />

The version indentifier should be a integer.

@staticmethod
def _extract_version(dom, template_name):

Undocumented

Parameters
dom:minidom.DocumentUndocumented
template​_name:strUndocumented
Returns
intUndocumented
_dom: Optional[minidom.Document] =

Undocumented