view decoupage/templates/index.html @ 47:0cfb84d788d6

* make head.html actually be correct; * bump version, cuz this breaks backwards compatability
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 27 Oct 2010 09:42:58 -0700
parents 20e3d138dc98
children 0890ec7069f3
line wrap: on
line source

<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/"
      xmlns:xi="http://www.w3.org/2001/XInclude">
  <head>
    <title>${title or path}</title>
    <link py:if="icon" rel="icon" href="${icon}"/>
    <link py:for="sheet in css or ()" rel="stylesheet" type="text/css" href="${sheet}"/>
    <script py:for="script in scripts or ()" src="${script}"></script>
  </head>
  <body>
    <xi:include py:if="include" href="${include}"/>
    <h1 py:if="title">${title}</h1>
    <ul id="listing">
      <li py:for="f in files">
        <a name="${f['path']}"></a>
        <a href="${f['path']}">
          ${f.get('title', f['description']) or f['name']}</a><span py:if="'title' in f and f['description']">: ${f['description']}
          </span>
          <py:if test="'links' in f">
            <span py:for="link in f['links']" class="link">
              <a href="${link['link']}">${link['text']}</a>
            </span>
          </py:if>
      </li>
    </ul>
   </body>
</html>