Version 9 (modified by cmlenz, 18 years ago) (diff) |
---|
Markup Templates
The most important feature provided by the Markup package is a template engine.
Templates are XML files of some kind (such as XHTML) that include processing directives identified by the namespace http://markup.edgewall.org/ and template expressions that are dynamically substituted by variable data.
Table of Contents
Expressions
Python expressions can be used in text and attribute values. An expression is substituted with the result of its' evaluation against the template data. Expressions need to prefixed with a dollar sign ($) and usually enclosed by curly braces ({…}).