#lang en = Debugging in python3 shell = Without custom enviroment: {{{#!python from jinja2 import Template template_str = "My name is {{name}}" obj = {'name': 'Alex'} print(Template(template_str).render(obj)) > My name is Alex }}} Using a custom enviroment: {{{#!python from jinja2 import Environment from jinja2_ansible_filters import AnsibleCoreFiltersExtension env = Environment(extensions=[AnsibleCoreFiltersExtension]) template_str = "My name is {{name}}" obj = {'name': 'Alex'} print(env.get_template(template_str).render(obj)) > My name is Alex }}}