Explorar o código

added untested/incomplete template sample file

Casey DeLorme %!s(int64=10) %!d(string=hai) anos
pai
achega
8ce9e130fe
Modificáronse 1 ficheiros con 29 adicións e 0 borrados
  1. 29 0
      template.tmpl

+ 29 - 0
template.tmpl

@@ -0,0 +1,29 @@
+<!doctype html>
+<html lang="en">
+    <head>
+        <meta charset="utf-8">
+        <title>{{name}} | sitename </title>
+        <link rel="stylesheet" type="text/css" href="/css/main.css#{{version}}">
+    </head>
+    <body>
+
+        <header>
+            <h2>Site Title or Logo</h2>
+            <nav>
+                <ul>{{range navigation}}
+                    <li><a href='{{link}}'>{{name}}</a></li>
+                {{end}}</ul>
+            </nav>
+        </header>
+
+        <div class="content">{{content}}</div>
+
+        <div class="footer">
+            <p>Worthless copyrights, or maybe useful contact information.</p>
+            <div class="scripts">
+                <script type="text/javascript" src="/js/main.js#{{version}}"></script>
+            </div>
+        </div>
+
+    </body>
+</html>