PTML 0.4.0

Embed Python in text documents
PTML is a Python module which lets you embed Python code in text documents. Its most common application is dynamic content generation on web servers, however it can be used anywhere you need to generate text files on-the-fly.

PTML is still at a very early stage, although the code should be usable enough for you to learn the syntax and experiment with possible applications. Future directions are briefly listed in the TODO file, suggestions and contributions are most welcome.

last updated on:
September 17th, 2010, 21:49 GMT
developed by:
Niall Smart
license type:
BSD License 
ROOT \ Text Editing&Processing \ Markup
Download Button

In a hurry? Add it to your Download Basket!

user rating



Rate it!
What's New in This Release:
  • Unicode support. If a pep0263-style coding declaration is present at the beginning of a template, all field expressions are treated as Unicode and converted to the output encoding. UTF-8 Byte Order Mark is an implicit declaration of UTF-8 output encoding. See the test suite for examples.
  • Note that in the Unicode mode string constants in template fields must be unicode strings, e.g. ${u"モンティパイソン"}.
  • Most parsing exceptions report source line numbers.
read full changelog

Add your review!