skip to navigation
skip to content

tmep 1.0.2

Template and Macros Expansion for Path names.

Package Documentation

tmep - Template and Macros Expansion for Path names.


From Github

From PyPI


Basic usage

This module implements a string formatter based on the standard PEP 292 string.Template class extended with function calls. Variables, as with string.Template, are indicated with $ and functions are delimited with %.

This module assumes that everything is Unicode: the template and the substitution values. Bytestrings are not supported. Also, the templates always behave like the safe_substitute method in the standard library: unknown symbols are left intact.

This is sort of like a tiny, horrible degeneration of a real templating engine like Jinja2 or Mustache.

File Type Py Version Uploaded on Size
tmep-1.0.2.tar.gz (md5) Source 2017-03-01 27KB