~jonas-drange/ubuntu-start-page/1252899-mobile-friendly

« back to all changes in this revision

Viewing changes to src/Mako-0.1.9/examples/bench/mako/template.html

  • Committer: Matthew Nuzum
  • Date: 2008-04-18 01:58:53 UTC
  • Revision ID: matthew.nuzum@canonical.com-20080418015853-2b8rf979z2c2exxl
adding files

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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" lang="en">
 
5
  <head>
 
6
    <title>${title}</title>
 
7
  </head>
 
8
  <body>
 
9
 
 
10
<%def name="greeting(name)">
 
11
      <p>hello ${name}!</p>
 
12
</%def>
 
13
      
 
14
 <%include file="header.html"/>
 
15
 
 
16
    ${greeting(user)}
 
17
    ${greeting('me')}
 
18
    ${greeting('world')}
 
19
    
 
20
    <h2>Loop</h2>
 
21
    % if list_items:
 
22
      <ul>
 
23
        % for i, list_item in enumerate(list_items):
 
24
        <li ${i+1==len(list_items) and "class='last'" or ""}>${list_item}</li>
 
25
        % endfor
 
26
      </ul>
 
27
    % endif
 
28
 
 
29
    <%include file="footer.html"/>
 
30
  </body>
 
31
</html>