CherryTemplate

From Wikipedia, the free encyclopedia

CherryTemplate - an open source templating language developed for CherryPy framework using Python programming language. CherryTemplate is a very simple yet relatively powerful templating language. Due to its small instruction set CherryTemplate is easy to learn. The templates made with CherryTemplate are not WYSIWYG-type-templates and they can't be edited with HTML editor, however the code can be easily manipulated with any text editor such as Wordpad, Scite, etc.

Example:

>>> from cherrytemplate import renderTemplate
>>> name = "world"
>>> renderTemplate('Hello, <py-eval="name">')

Screen Output:

'Hello, world'


[edit] References

http://cherrytemplate.python-hosting.com/

Languages