Jinja 2 from jinja2 import (BaseLoader, ChoiceLoader, Environment, FileSystemLoader, PrefixLoader, TemplateNotFound) code example
Example: python jinja2 from string
from jinja2 import Environment, BaseLoader
rtemplate = Environment(loader=BaseLoader()).from_string(myString)
data = rtemplate.render(**data)