Package pyrobase :: Module templating
[hide private]
[frames] | no frames]

Module templating

source code

Templating Helpers.

Copyright (c) 2012 The PyroScope Project <pyroscope.project@gmail.com>

Classes [hide private]
  InterpolationTemplate
Simple string interpolation.
Functions [hide private]
 
preparse(template_text, lookup=None)
Do any special processing of a template, including recognizing the templating language and resolving file: references, then return an appropriate wrapper object.
source code
Variables [hide private]
  __package__ = 'pyrobase'
Function Details [hide private]

preparse(template_text, lookup=None)

source code 

Do any special processing of a template, including recognizing the templating language and resolving file: references, then return an appropriate wrapper object.

Currently Tempita and Python string interpolation are supported. `lookup` is an optional callable that resolves any ambiguous template path.