- class
jinja2.nodes. Expr Baseclass for all expressions. as_const (eval_ctx=None)Return the value of the expression as constant or raise Impossible if this was not possible. An EvalContext can be provided, if none is given a default context is created which requires the nodes to have an attached environment. Changed in version 2.4: the eval_ctx parameter was added.
can_assign ()Check if it’s possible to assign something to this node.
- class
jinja2.nodes. BinExpr (left, right) Baseclass for all binary expressions.
- class
jinja2.nodes. Add (left, right) Add the left to the right node.
- class
jinja2.nodes. And (left, right) Short circuited AND.
- class
jinja2.nodes. Div (left, right) Divides the left by the right node.
- class
jinja2.nodes. FloorDiv (left, right) Divides the left by the right node and truncates conver the result into an integer by truncating.
- class
jinja2.nodes. Mod (left, right) Left modulo right.
- class
jinja2.nodes. Mul (left, right) Multiplies the left with the right node.
- class
jinja2.nodes. Or (left, right) Short circuited OR.
- class
jinja2.nodes. Pow (left, right) Left to the power of right.
- class
jinja2.nodes. Sub (left, right) Subtract the right from the left node.
- class
jinja2.nodes. Call (node, args, kwargs, dyn_args, dyn_kwargs) Calls an expression. args is a list of arguments, kwargs a list of keyword arguments (list of Keyword nodes), and dyn_args and dyn_kwargs has to be either None or a node that is used as node for dynamic positional (*args ) or keyword (**kwargs ) arguments.
- class
jinja2.nodes. Compare (expr, ops) Compares an expression with some other expressions. ops must be a list of Operand s.
- class
jinja2.nodes. Concat (nodes) Concatenates the list of expressions provided after converting them to unicode.
- class
jinja2.nodes. CondExpr (test, expr1, expr2) A conditional expression (inline if expression). ({{ foo if bar else baz }} )
|