OpenQuizz
Une application de gestion des contenus pédagogiques
jinja2.environment Namespace Reference

Data Structures

class  Environment
 
class  Template
 
class  TemplateExpression
 
class  TemplateModule
 
class  TemplateStream
 

Functions

def get_spontaneous_environment (cls, *args)
 
def create_cache (size)
 
def copy_cache (cache)
 
def load_extensions (environment, extensions)
 
def fail_for_missing_callable (string, name)
 

Function Documentation

◆ copy_cache()

def jinja2.environment.copy_cache (   cache)
Create an empty copy of the given cache.

◆ create_cache()

def jinja2.environment.create_cache (   size)
Return the cache class for the given size.

◆ fail_for_missing_callable()

def jinja2.environment.fail_for_missing_callable (   string,
  name 
)

◆ get_spontaneous_environment()

def jinja2.environment.get_spontaneous_environment (   cls,
args 
)
Return a new spontaneous environment. A spontaneous environment
is used for templates created directly rather than through an
existing environment.

:param cls: Environment class to create.
:param args: Positional arguments passed to environment.

◆ load_extensions()

def jinja2.environment.load_extensions (   environment,
  extensions 
)
Load the extensions from the list and bind it to the environment.
Returns a dict of instantiated environments.