|
OpenQuizz
Une application de gestion des contenus pédagogiques
|
Data Structures | |
| class | BlockReference |
| class | ChainableUndefined |
| class | Context |
| class | ContextMeta |
| class | DebugUndefined |
| class | LoopContext |
| class | Macro |
| class | StrictUndefined |
| class | TemplateReference |
| class | Undefined |
Functions | |
| def | identity (x) |
| def | markup_join (seq) |
| def | unicode_join (seq) |
| def | new_context (environment, template_name, blocks, vars=None, shared=None, globals=None, locals=None) |
| def | resolve_or_missing (context, key, missing=missing) |
| def | make_logging_undefined (logger=None, base=None) |
Variables | |
| exported | |
| to_string | |
| def jinja2.runtime.identity | ( | x | ) |
Returns its argument. Useful for certain things in the environment.
| def jinja2.runtime.make_logging_undefined | ( | logger = None, |
|
base = None |
|||
| ) |
Given a logger object this returns a new undefined class that will
log certain failures. It will log iterations and printing. If no
logger is given a default logger is created.
Example::
logger = logging.getLogger(__name__)
LoggingUndefined = make_logging_undefined(
logger=logger,
base=Undefined
)
.. versionadded:: 2.8
:param logger: the logger to use. If not provided, a default logger
is created.
:param base: the base class to add logging functionality to. This
defaults to :class:`Undefined`.
| def jinja2.runtime.markup_join | ( | seq | ) |
Concatenation that escapes if necessary and converts to unicode.
| def jinja2.runtime.new_context | ( | environment, | |
| template_name, | |||
| blocks, | |||
vars = None, |
|||
shared = None, |
|||
globals = None, |
|||
locals = None |
|||
| ) |
Internal helper for context creation.
| def jinja2.runtime.resolve_or_missing | ( | context, | |
| key, | |||
missing = missing |
|||
| ) |
| def jinja2.runtime.unicode_join | ( | seq | ) |
Simple args to unicode conversion and concatenation.
| exported |
| to_string |