CherryTemplate

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.[citation needed] 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


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать курсовую

Look at other dictionaries:

  • CherryPy — Developer(s) CherryPy team Stable release 3.2.0 / February 25, 2011; 8 months ago (2011 02 25) Written in Python …   Wikipedia

  • CherryPy — Тип Фреймворк для создания веб приложений Разработчик команда CherryPy Операционная система любая Языки интерфейса Python Последняя версия 3.2.0 ( …   Википедия

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”