Factory#
- class technote.factory.Factory#
Bases:
objectA factory for creating classes based on configuration.
Methods Summary
create_jinja_context(metadata, root_filename)Create the Jinja context for the technote.
- rtype:
Create the TechnoteMetadata.
parse_toml(toml_content)Parse the content of a
technote.tomlfile.Methods Documentation
- create_jinja_context(metadata, root_filename)#
Create the Jinja context for the technote. :rtype:
TechnoteJinjaContext- Parameters:
metadata (
TechnoteMetadata) –root_filename (
Path) –
- find_and_load_toml()#
- Return type:
- load_metadata()#
Create the TechnoteMetadata. :rtype:
TechnoteMetadata
- parse_toml(toml_content)#
Parse the content of a
technote.tomlfile. :rtype:TechnoteToml- Parameters:
toml_content (
str) –