Mercurial > genshi > genshi-test
view examples/bench/simpletal/template.html @ 713:a58a50e89d04
The `Markup` class now supports mappings for right hand of the `%` (modulo) operator in the same way the Python string classes do, except that the substituted values are escape. Also, the special constructor which took positional arguments that would be substituted was removed. Thus the `Markup` class now supports the same arguments as that of its `unicode` base class. Closes #211. Many thanks to Christian Boos for the patch!
author | cmlenz |
---|---|
date | Tue, 08 Apr 2008 18:18:18 +0000 |
parents | 70ec95c8d1ea |
children |
line wrap: on
line source
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head> <title tal:content="title">Title</title> </head> <body metal:use-macro="base/macros/content"> <div metal:fill-slot="content"> <div metal:use-macro="base/macros/greeting"> <span metal:fill-slot="name" tal:content="user" tal:omit-tag=""></span> </div> <div metal:use-macro="base/macros/greeting"> <span metal:fill-slot="name" tal:omit-tag="">me</span> </div> <div metal:use-macro="base/macros/greeting"> <span metal:fill-slot="name" tal:omit-tag="">world</span> </div> <h2>Loop</h2> <ul tal:condition="items"> <li tal:repeat="item items" tal:content="item" tal:attributes="class python:repeat['item'].getEnd() and 'last' or None">Item</li> </ul> </div> </body> </html>