Edgewall Software

source: trunk/examples/bench/genshi/template.html

Last change on this file was 299, checked in by cmlenz, 17 years ago

Fixed EOL style.

  • Property svn:eol-style set to native
File size: 667 bytes
RevLine 
[61]1<!DOCTYPE html
2    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4<html xmlns="http://www.w3.org/1999/xhtml"
[287]5      xmlns:py="http://genshi.edgewall.org/"
[61]6      xmlns:xi="http://www.w3.org/2001/XInclude"
7      lang="en">
[74]8  <xi:include href="base.html" />
[61]9  <head>
10    <title>${title}</title>
11  </head>
12  <body>
[81]13    <div>${greeting(user)}</div>
[74]14    <div>${greeting('me')}</div>
[81]15    <div>${greeting('world')}</div>
[61]16
17    <h2>Loop</h2>
18    <ul py:if="items">
[74]19      <li py:for="idx, item in enumerate(items)" py:content="item"
[86]20          class="${idx + 1 == len(items) and 'last' or None}" />
[61]21    </ul>
22
23  </body>
24</html>
Note: See TracBrowser for help on using the repository browser.