Edgewall Software

source: trunk/examples/bench/kid/template.kid

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: 613 bytes
Line 
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"
5      xmlns:py="http://purl.org/kid/ns#"
6      py:extends="'base.kid'"
7      lang="en">
8  <head>
9    <title>${title}</title>
10  </head>
11  <body>
12    <div>${greeting(user)}</div>
13    <div>${greeting('me')}</div>
14    <div>${greeting('world')}</div>
15   
16    <h2>Loop</h2>
17    <ul py:if="items">
18      <li py:for="idx, item in enumerate(items)" py:content="item"
19          class="${idx + 1 == len(items) and 'last' or None}" />
20    </ul>
21  </body>
22</html>
Note: See TracBrowser for help on using the repository browser.