![]() |
Qucs-S S-parameter Viewer & RF Synthesis Tools
|
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 |
The runtime functions and state used by compiled templates.
| V jinja2.runtime.identity | ( | V | x | ) |
Returns its argument. Useful for certain things in the environment.
| 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`.
| str jinja2.runtime.markup_join | ( | t.Iterable[t.Any] | seq | ) |
Concatenation that escapes if necessary and converts to string.
| "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 jinja2.runtime.str_join | ( | t.Iterable[t.Any] | seq | ) |
Simple args to string conversion and concatenation.
| list jinja2.runtime.async_exported |
| list jinja2.runtime.exported |