OpenQuizz
Une application de gestion des contenus pédagogiques
|
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) |
def jinja2.environment.copy_cache | ( | cache | ) |
Create an empty copy of the given cache.
def jinja2.environment.create_cache | ( | size | ) |
Return the cache class for the given size.
def jinja2.environment.fail_for_missing_callable | ( | string, | |
name | |||
) |
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.
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.