diff 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
line wrap: on
line diff
--- a/decoupage/templates/index.html	Mon Feb 08 11:10:54 2010 -0500
+++ b/decoupage/templates/index.html	Mon Feb 08 11:40:57 2010 -0500
@@ -6,7 +6,10 @@
       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" rel="stylesheet" type="text/css" href="${sheet}"/>
+    <script py:for="script in scripts" src="${script}"></script>
+    
   </head>
   <body>
     <xi:include py:if="include" href="${include}"/>
@@ -17,10 +20,11 @@
         <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>
-          <span py:if="'links' in f" py:for="link in f['links']" 
-                class="link">
-          <a href="link['link']">${link['text']}</a>
+          <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>