jinja2.runtime

jinja2.runtime

Runtime helpers.

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

BSD.

Classes

BlockReference One block on a template reference.
Context The template context holds the variables of a template.
DebugUndefined An undefined that returns the debug info when printed.
LoopContext A loop context for dynamic iteration.
LoopContextIterator The iterator for a loop context.
Macro Wraps a macro function.
StrictUndefined An undefined that barks on print and iteration as well as boolean tests and all kinds of comparisons.
TemplateReference The self in templates.
Undefined The default undefined type.

Exceptions

TemplateNotFound(name[, message]) Raised if a template does not exist.
TemplateRuntimeError([message]) A generic runtime error in the template engine.
UndefinedError([message]) Raised if a template tries to operate on Undefined.

Functions

concat S.join(iterable) -> unicode
identity(x)
markup_join(seq) Concatenation that escapes if necessary and converts to unicode.
new_context(environment, template_name, blocks) Internal helper to for context creation.
next(iterator[, default]) Return the next item from the iterator.
unicode_join(seq) Simple args to unicode conversion and concatenation.

Defined

  • EvalContext
  • Mapping
  • Markup
  • chain
  • escape
  • imap
  • internalcode
  • missing
  • object_type_repr
  • partial
  • soft_unicode
  • to_string

Table Of Contents

Previous topic

next

Next topic

BlockReference Class