|
|
str | __str__ (self) |
| |
| bool | test (self, str expr) |
| |
| bool | test_any (self, *str iterable) |
| |
|
|
int | lineno |
| |
|
str | type |
| |
|
str | value |
| |
◆ test()
| bool jinja2.lexer.Token.test |
( |
|
self, |
|
|
str |
expr |
|
) |
| |
Test a token against a token expression. This can either be a
token type or ``'token_type:token_value'``. This can only test
against string values and types.
◆ test_any()
| bool jinja2.lexer.Token.test_any |
( |
|
self, |
|
|
*str |
iterable |
|
) |
| |
Test against multiple token expressions.
The documentation for this class was generated from the following file:
- docs/help/help-venv/lib/python3.12/site-packages/jinja2/lexer.py