PTML 0.4.0

Embed Python in text documents

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!

What's new in PTML 0.4.0:

  • 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
send us
an update
LICENSE TYPE:
BSD License 
USER RATING:
UNRATED
  0.0/5
DEVELOPED BY:
Niall Smart
HOMEPAGE:
ptml.sourceforge.net
CATEGORY:
ROOT \ Text Editing&Processing \ Markup
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

requirements

#embeded Python #text documents #Python #embeded #documents #text

Add your review!

SUBMIT