jinja2 render template code example
Example 1: python jinja2 from string
from jinja2 import Environment, BaseLoader
rtemplate = Environment(loader=BaseLoader()).from_string(myString)
data = rtemplate.render(**data)
Example 2: jinja2 include template
{% include "to_be_included.html" with context %}