jinja2.environment.get_spontaneous_environment

jinja2.environment.get_spontaneous_environment(*args)[source]

Return a new spontaneous environment. A spontaneous environment is an unnamed and unaccessible (in theory) environment that is used for templates generated from a string and not from the file system.