Note

This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the user guide for the big picture.

brainprep.reporting.utils.inject_with_jinja

brainprep.reporting.utils.inject_with_jinja(template_file, **kwargs)[source]

Render Jinja template given context and write it to an output file.

Parameters:
template_file: File

Path to the Jinja template file.

**kwargs: Any

The context to render the template.

Returns:
render: str

The HTML page