Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed titles. Added WRAPPER.

  • Loading branch information...
commit d48c92ee817614a45530120aaf49690c6baa7470 1 parent db8f10f
@davorg authored
Showing with 28 additions and 34 deletions.
  1. +4 −16 grillcd.tt
  2. +4 −18 index.tt
  3. +20 −0 page.tt
View
20 grillcd.tt
@@ -1,9 +1,6 @@
-<html>
- <head>
- <title>[% cd.code %] - [% cd.title %]</title>
- <link rel="stylesheet" href="style.css" type="text/css" />
- <head>
- <body>
+[% WRAPPER page.tt
+ title = cd.code _ ': ' _ cd.title
+-%]
<h1>[% cd.title | html %]</h1>
<p><a href="index.html">Return to list</p>
@@ -27,13 +24,4 @@
</tr>
[% END -%]
</table>
- <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
- </script>
-
- <script type="text/javascript">
-_uacct = "UA-56332-2";
-urchinTracker();
- </script>
- </body>
-</html>
-
+[% END -%]
View
22 index.tt
@@ -1,9 +1,6 @@
-<html>
- <head>
- <title>Cooking Vinyl Compilation CDs</title>
- <link rel="stylesheet" href="style.css" type="text/css" />
- </head>
- <body>
+[% WRAPPER page.tt
+ title = 'Cooking Vinyl Compilation CDs'
+-%]
<h1>Cooking Vinyl Compilation CDs</h1>
<p>A list of compilations released by
<a href="http://www.cookingvinyl.com/">Cooking Vinyl</a> records.</p>
@@ -20,15 +17,4 @@
</tr>
[% END -%]
</table>
- <address>
- Site created by <a href="mailto:dave@dave.org.uk">Dave Cross</a>
- </address>
- <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
- </script>
-
- <script type="text/javascript">
-_uacct = "UA-56332-2";
-urchinTracker();
- </script>
- </body>
-</html>
+[% END -%]
View
20 page.tt
@@ -0,0 +1,20 @@
+<html>
+ <head>
+ <title>[% title %]</title>
+ <link rel="stylesheet" href="style.css" type="text/css" />
+ <head>
+ <body>
+[% content %]
+ <address>
+ Site created by <a href="mailto:dave@dave.org.uk">Dave Cross</a>
+ </address>
+ <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
+ </script>
+
+ <script type="text/javascript">
+_uacct = "UA-56332-2";
+urchinTracker();
+ </script>
+ </body>
+</html>
+
Please sign in to comment.
Something went wrong with that request. Please try again.