All Classes and Interfaces
Class
Description
Defines a function which will be called in the context of an interpreter instance.
Filter base that uses Filter Jinjavadoc to construct named argument parameters.
Defines property resolution behavior on objects using the JavaBeans component architecture.
ChronoUnit
for valid time units{% block name %}
bool(value) Convert value to boolean.
Implements the common loopcontrol `continue`, as in the jinja2.ext.loopcontrols extension
A random number generator that always returns 0.
Immutable implementation of
ContextConfigurationIF
.Builds instances of type
ContextConfiguration
.Implements the common loopcontrol `continue`, as in the jinja2.ext.loopcontrols extension
{% cycle a,b,c %} {% cycle a,'b',c as d %} {% cycle d %}
Deprecated.
Deprecated.
Superseded by
FormatDatetimeFilter
A random number generator that throws
DeferredValueException
for all supported methods.Marker object which indicates that the template engine should skip over evaluating
this part of the template, if the object is resolved from the context.
Exception thrown when attempting to render a
DeferredValue
.A deferred value which represents that a value was deferred within this context,
but it is does not overwrite the actual key in which the original value resides on the context.
An OutputNode that can be modified after already being added to the OutputList
AstNested is final so this decorates AstRightValue.
This decorator exists to ensure that every EvalResultHolder is an
instanceof AstNode.
This represents the result of speculatively executing an expression, where if something
got deferred, then the
prefixToPreserveState
can be added to the output
that would preserve the state for a second pass.Defines that this public static method should be exposed to the expression resolver, with the given name and optional namespace.
Immutable implementation of
ContextConfigurationIF.ErrorHandlingStrategyIF
.Builds instances of type
ErrorHandlingStrategy
.Resolves Jinja expressions.
Beside filters there are also so called "tests" available.
Syntax extensions for the expression language library
- pipe '|' postfix unary operator for applying filters to expressions - positive '+' prefix unary operator for absolute value of numeric - 'is' postfix operator for creating a boolean expression with an expression test function - named
function args support (still requires precise order, but accepts syntax of fn(foo=bar, a=b)
Container exception thrown when fatal errors are encountered while rendering a template.
{% for a in b|f1:d,c %}
Whitespace and comma as separator quote to accept them as normal char
Jinja2 supports putting often used code into macros.
int(value, default=0) Convert the value into an integer.
The main client API for the Jinjava library, instances of this class can be used to render jinja templates with a given map of context values.
BeanELResolver
supporting snake case property names.This class allows Jinjava to be configured to override legacy behaviour.
Function definition parsed from a jinjava template, stored in global macros registry in interpreter context.
ChronoUnit
for valid time unitsAn ELResolver that is read only and does not allow invocation of methods.
Exception thrown when `continue` or `break` is called outside of a loop
Marker object of a `null` value.
An interface for a type of DeferredValue that as a whole is not deferred,
but certain attributes or methods within it are deferred.
ChronoUnit
for valid time unitsan object which quacks like a python date
Marker indicating an object is a python wrapper interface.
Mark the value as safe which means that in an environment with automatic escaping enabled this variable will not be escaped.
{% set primary_line_height = primary_font_size_num*1.5 %}
{% set lw_font_size = "font-size: " ~ lw_font_size_base ~ "px; " %} {% set lw_secondary_font_size = "font-size: " ~ (lw_font_size_base - 2) ~ "px; " %} {% set lw_line_height = "line-height: " ~ lw_font_size_base*1.5 ~ "px; " %}
split(separator=' ', limit=0)
Splits the input string into a list on the given separator
separator: defaults to space limit: defaults to 0, limits resulting list by putting remainder of string into last list item
Datetime format string formatter, supporting both python and java compatible format strings by converting any percent-tokens from python into their java equivalents.
striptags(value) Strip SGML/XML tags and replace adjacent whitespace by one space.
Return a titlecased version of the value.
trim(value) Strip leading and trailing whitespace.
Unless is a conditional just like 'if' but works on the inverse logic.
FormatDatetimeFilter