4.4.1 Templates

This module can generate file from jinja2 templates. Templates needs to me in pymktemplates folder with empty pymktemplates/__init__.py file.

extra.template.mktemplate(template_path, output_file[, data={}])

Function generates files from jinja2 templates.

Parameters:
  • template_path – path to a template in the pymktemplates directory
  • output_file – path to a output file
  • data – dict with data inputed to a template

Previous topic

4.4 Extra

Next topic

4.4.2 Run command

This Page