CherryTemplate

CherryTemplate is an open source templating language developed for CherryPy framework using the Python programming language. CherryTemplate is a simple yet relatively powerful templating language. It has a small instruction set. The templates made with CherryTemplate are not WYSIWYG-type-templates and they can't be edited with an 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'

References

This article is issued from Wikipedia - version of the Monday, March 21, 2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.