jinja2.parser¶
Implements the template parser.
| copyright: |
|
|---|---|
| license: | BSD, see LICENSE for more details. |
Functions¶
describe_token(token) |
Returns a description of the token. |
describe_token_expr(expr) |
Like describe_token but for token expressions. |
Classes¶
Parser(environment, source[, name, ...]) |
This is the central parsing class Jinja2 uses. |
imap |
imap(func, *iterables) –> imap object |
Exceptions¶
TemplateAssertionError(message, lineno[, ...]) |
Like a template syntax error, but covers cases where something in the template caused an error at compile time that wasn’t necessarily caused by a syntax error. |
TemplateSyntaxError(message, lineno[, name, ...]) |
Raised to tell the user that there is a problem with the template. |