pi_portal.installation.templates.config_file.ConfileFileTemplate

class pi_portal.installation.templates.config_file.ConfileFileTemplate(source: str, destination: str)[source]

Bases: object

Configuration file template content.

Parameters:
  • source (str) – The path to the template file.

  • destination (str) – The path to render the template to.

__init__(source: str, destination: str) None[source]

Initialize a Template instance.

render() None[source]

Render the template.

update_context() None[source]

Update the context dictionary with user config and static config.