diff examples/bench/mako/template.html @ 543:afe7f8638307

Replace Myghty by Mako in bigtable benchmark, apply escaping in Mako templates.
author cmlenz
date Thu, 28 Jun 2007 18:12:15 +0000
parents 661715b49c0c
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
Copyright (C) 2012-2017 Edgewall Software