jinja2.sandbox.ImmutableSandboxedEnvironment.from_string

ImmutableSandboxedEnvironment.from_string(source, globals=None, template_class=None)

Load a template from a string. This parses the source given and returns a Template object.