Mercurial > genshi > mirror
diff examples/bench/mako/template.html @ 543:0449396999c5 trunk
Replace Myghty by Mako in bigtable benchmark, apply escaping in Mako templates.
author | cmlenz |
---|---|
date | Thu, 28 Jun 2007 18:12:15 +0000 |
parents | 6b413fbf359a |
children |
line wrap: on
line diff
--- a/examples/bench/mako/template.html +++ b/examples/bench/mako/template.html @@ -7,7 +7,7 @@ </head> <body> <%def name="greeting(name)"> - <p>Hello, ${name}!</p> + <p>Hello, ${name | h}!</p> </%def> <%include file="header.html"/> @@ -20,7 +20,7 @@ % if items: <ul> % for idx, item in enumerate(items): - <li ${idx+1==len(items) and "class='last'" or ""}>${item}</li> + <li ${idx+1==len(items) and "class='last'" or ""}>${item | h}</li> % endfor </ul> % endif