comparison decoupage/templates/index.html @ 33:e384d4569ac3

include components necessary to make decoupage feel almost like a framework
author k0s <k0scist@gmail.com>
date Mon, 08 Feb 2010 11:40:57 -0500
parents 983c13e1b71f
children 20e3d138dc98
comparison
equal deleted inserted replaced
32:983c13e1b71f 33:e384d4569ac3
4 <html xmlns="http://www.w3.org/1999/xhtml" 4 <html xmlns="http://www.w3.org/1999/xhtml"
5 xmlns:py="http://genshi.edgewall.org/" 5 xmlns:py="http://genshi.edgewall.org/"
6 xmlns:xi="http://www.w3.org/2001/XInclude"> 6 xmlns:xi="http://www.w3.org/2001/XInclude">
7 <head> 7 <head>
8 <title>${title or path}</title> 8 <title>${title or path}</title>
9 <link py:if="icon" rel="icon" href="${icon}"/>
9 <link py:for="sheet in css" rel="stylesheet" type="text/css" href="${sheet}"/> 10 <link py:for="sheet in css" rel="stylesheet" type="text/css" href="${sheet}"/>
11 <script py:for="script in scripts" src="${script}"></script>
12
10 </head> 13 </head>
11 <body> 14 <body>
12 <xi:include py:if="include" href="${include}"/> 15 <xi:include py:if="include" href="${include}"/>
13 <h1 py:if="title">${title}</h1> 16 <h1 py:if="title">${title}</h1>
14 <ul id="listing"> 17 <ul id="listing">
15 <li py:if="request.path_info.strip('/')"><a href="..">..</a></li> 18 <li py:if="request.path_info.strip('/')"><a href="..">..</a></li>
16 <li py:for="f in files"> 19 <li py:for="f in files">
17 <a href="${f['path']}"> 20 <a href="${f['path']}">
18 ${f.get('title', f['description']) or f['name']}</a><span py:if="'title' in f and f['description']">: ${f['description']} 21 ${f.get('title', f['description']) or f['name']}</a><span py:if="'title' in f and f['description']">: ${f['description']}
19 </span> 22 </span>
20 <span py:if="'links' in f" py:for="link in f['links']" 23 <py:if test="'links' in f">
21 class="link"> 24 <span py:for="link in f['links']" class="link">
22 <a href="link['link']">${link['text']}</a> 25 <a href="${link['link']}">${link['text']}</a>
23 </span> 26 </span>
27 </py:if>
24 </li> 28 </li>
25 </ul> 29 </ul>
26 </body> 30 </body>
27 </html> 31 </html>