Changed the rendering code for templating output
[biaweb2.git] / templates / main.tpl.html
index 0073bfc..804d24c 100644 (file)
@@ -1,73 +1,27 @@
 <!DOCTYPE html>
 <html lang="en">
 <head>
-<title>My Site - %s</title>
-<meta name="keywords" content="%s">
-<meta name="description" content="%s">
+<title>My Site - {title}</title>
+<meta name="keywords" content="{keywords}">
+<meta name="description" content="{description}">
 <!-- change base href to your site URL -->
 <base href="http://my.site">
 <style>
-    body {
-        background-color: whitesmoke;
-        font-family:Arial, Helvetica, sans-serif;
-        font-size: 0.9em;
-        margin: 0;
-        padding: 0;
-    }
-    h1, h2, h3, h4, h5, h6 {
-        font-family: Georgia, 'Times New Roman', Times, serif;
-    }
-    div#header {
-        width: 100%;
-        color: white;
-        background-color:#a1a0c0;
-        height: 50px;
-        float: left;
-    }
-    div#modification {
-        width: 100%;
-        color: darkslateblue;
-        font-size: 0.9em;
-        float:left;
-    }
-    div#footer {
-        width: 100%;
-        text-align: center;
-        background-color: #a1a0c0;
-        color: white;
-        float:left;
-    }
-    div#sidebar {
-        float :right;
-        background-color: darkslateblue;
-        color: white;
-        width: 30%;
-        padding: 1%;
-    }
-    div#sidebar a, div#sidebar a:visited {
-        color: white;
-    }
-
-    div#content {
-        width: 63%;
-        margin-right:1%;
-        margin-left: 1%;
-        float: left;
-    }
+{stylesheet}
 </style>
 </head>
 <body>
     <div id="header"></div>
     <div id="content">
-        <div id="modification">Created on: %s, last modified: %s</div>
-        %s
+        <div id="modification">Created on: {cdate:%d %b %Y, %H:%M %Z}, 
+            last modified: {mdate:%d %b %Y, %H:%M %Z}</div>
+        {contents}
     </div>
     <div id="sidebar">
-        %s
+        {sidebar}
     </div>
     <div id ="footer">
         My copyright
     </div>
-
 </body>
 </html>