jinja2.parser

jinja2.parser

Implements the template parser.

copyright:
  1. 2010 by the Jinja Team.
license:

BSD, see LICENSE for more details.

Classes

Parser This is the central parsing class Jinja2 uses. It’s passed to

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.

Functions

next(iterator[, default]) Return the next item from the iterator.

Defined

  • describe_token
  • describe_token_expr
  • nodes

Table Of Contents

Previous topic

optimize

Next topic

Parser Class