config.py¶
The config.py turns YAML into Python dictionaries, supports Jinja2.
-
class
botoform.config.
ConfigLoader
(template_dir=None, context_vars=None)¶ Loads Botoform Schema and returns a dictionary.
-
load
(template_path=None, template_string=None)¶ Load a Botoform Schema config and render with Jinja2.
Parameters: - template_path – Path to the config to load and render.
- template_string – String to load and render. Optional.
Returns: Python dictionary representation of config.
-
render
(template_file)¶ Return Jinja2 render of template with context_vars.
-
render_string
(template_string)¶ Return Jinja2 render of template_str with context_vars.
-
template_dir
¶
-