Factory

class technote.factory.Factory

Bases: object

A factory for creating classes based on configuration.

Methods Summary

create_jinja_context(metadata, root_filename)

Create the Jinja context for the technote.

find_and_load_toml()

rtype:

TechnoteToml

load_metadata()

Create the TechnoteMetadata.

parse_toml(toml_content)

Parse the content of a technote.toml file.

Methods Documentation

create_jinja_context(metadata, root_filename)

Create the Jinja context for the technote.

Parameters:
Return type:

TechnoteJinjaContext

find_and_load_toml()
Return type:

TechnoteToml

load_metadata()

Create the TechnoteMetadata.

Return type:

TechnoteMetadata

parse_toml(toml_content)

Parse the content of a technote.toml file.

Parameters:

toml_content (str)

Return type:

TechnoteToml