py1.template_reader

The template with the conveniency variables.

Functions

build_code(begin, each_line, end, concise) Instantiates the templates running the specified code.

Exceptions

Error Base class for errors from this module.
InvalidTemplateError Raised by build_code when the template is invalid.
exception Error[source]

Base class for errors from this module.

exception InvalidTemplateError[source]

Raised by build_code when the template is invalid.

build_code(begin, each_line, end, concise)[source]

Instantiates the templates running the specified code.

Parameters:
  • begin – List of strings, will be run before the main loop.
  • each_line – List of strings, will be run in the main loop.
  • end – List of strings, will be run just after the main loop.
  • concise – boolean, if true the code won’t actually be runnable but will be shorter.