Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Classes | Functions | Variables
jinja2.runtime Namespace Reference

Classes

class  AsyncLoopContext
 
class  BlockReference
 
class  ChainableUndefined
 
class  Context
 
class  DebugUndefined
 
class  LoopContext
 
class  LoopRenderFunc
 
class  Macro
 
class  StrictUndefined
 
class  TemplateReference
 
class  Undefined
 

Functions

V identity (V x)
 
str markup_join (t.Iterable[t.Any] seq)
 
str str_join (t.Iterable[t.Any] seq)
 
"Context" new_context ("Environment" environment, t.Optional[str] template_name, t.Dict[str, t.Callable[["Context"], t.Iterator[str]]] blocks, t.Optional[t.Dict[str, t.Any]] vars=None, bool shared=False, t.Optional[t.MutableMapping[str, t.Any]] globals=None, t.Optional[t.Mapping[str, t.Any]] locals=None)
 
F _dict_method_all (F dict_method)
 
t.Type[Undefined] make_logging_undefined (t.Optional["logging.Logger"] logger=None, t.Type[Undefined] base=Undefined)
 

Variables

 V = t.TypeVar("V")
 
 F = t.TypeVar("F", bound=t.Callable[..., t.Any])
 
list exported
 
list async_exported
 

Detailed Description

The runtime functions and state used by compiled templates.

Function Documentation

◆ identity()

V jinja2.runtime.identity ( V  x)
Returns its argument. Useful for certain things in the
environment.

◆ make_logging_undefined()

t.Type[Undefined] jinja2.runtime.make_logging_undefined ( t.Optional["logging.Logger"]   logger = None,
t.Type[Undefined]   base = Undefined 
)
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`.

◆ markup_join()

str jinja2.runtime.markup_join ( t.Iterable[t.Any]  seq)
Concatenation that escapes if necessary and converts to string.

◆ new_context()

"Context" jinja2.runtime.new_context ( "Environment"  environment,
t.Optional[str]  template_name,
t.Dict[str, t.Callable[["Context"], t.Iterator[str]]]  blocks,
t.Optional[t.Dict[str, t.Any]]   vars = None,
bool   shared = False,
t.Optional[t.MutableMapping[str, t.Any]]   globals = None,
t.Optional[t.Mapping[str, t.Any]]   locals = None 
)
Internal helper for context creation.

◆ str_join()

str jinja2.runtime.str_join ( t.Iterable[t.Any]  seq)
Simple args to string conversion and concatenation.

Variable Documentation

◆ async_exported

list jinja2.runtime.async_exported
Initial value:
1= [
2 "AsyncLoopContext",
3 "auto_aiter",
4 "auto_await",
5]

◆ exported

list jinja2.runtime.exported
Initial value:
1= [
2 "LoopContext",
3 "TemplateReference",
4 "Macro",
5 "Markup",
6 "TemplateRuntimeError",
7 "missing",
8 "escape",
9 "markup_join",
10 "str_join",
11 "identity",
12 "TemplateNotFound",
13 "Namespace",
14 "Undefined",
15 "internalcode",
16]