glusto.templatable module¶
All things Jinja templates.
Note
Templatable is inherited by the Glusto class and not designed to be instantiated.
-
class
glusto.templatable.
Templatable
¶ Bases:
object
The class providing Jinja template functionality.
-
static
render_template
(template_filename, template_vars={}, output_file=None, searchpath=None)¶ Render a template into text file
Parameters: - template_filename (str) – Fully qualified template filename.
- template_vars (dict) – A dictionary of variables.
- output_file (str) – Fully qualified output filename.
- searchpath (str) – The root path to begin file searches. Default is the current path.
Returns: String containing template rendering result if successful.
-
static