Quellcode durchsuchen

Split views and layouts

Alois Mahdal vor 11 Jahren
Ursprung
Commit
e928a1fae8
4 geänderte Dateien mit 20 neuen und 29 gelöschten Zeilen
  1. 0
    25
      views/html.tt
  2. 18
    2
      views/layouts/html.tt
  3. 2
    0
      views/plain.tt
  4. 0
    2
      views/st.tt

+ 0
- 25
views/html.tt Datei anzeigen

@@ -1,25 +1,3 @@
1
-<!DOCTYPE html>
2
-<html lang="en">
3
-
4
-    <head>
5
-        <title></title>
6
-        <meta charset="utf-8" />
7
-        <meta x-st-slave="Params: a=b" />
8
-        <meta x-st-slave="Master Revision: 1366856496" />
9
-        <meta x-st-slave="Master: /release/rc.stm" />
10
-        <link rel="stylesheet" href="/main.css" />
11
-        <link rel="alternate" href="/st/release/rc.stm?a=b" />
12
-    </head>
13
-    <body>
14
-
15
-        <nav>
16
-            <ul>
17
-                <li>prev</li>
18
-                <li>top</li>
19
-                <li>next</li>
20
-            </ul>
21
-        </nav>
22
-
23 1
         <aside id="errbox">
24 2
 
25 3
             <h1>SUGAR-TRAIL WARNINGS</h1>
@@ -73,6 +51,3 @@
73 51
         <footer>
74 52
             <p>(c) Me</p><p>&#167; 2013 <a href="#">Alois Mahdal</a></p>
75 53
         </footer>
76
-
77
-    </body>
78
-</html>

+ 18
- 2
views/layouts/html.tt Datei anzeigen

@@ -1,2 +1,18 @@
1
-<p style="color:#0a0">This is a green html but nevermind...</p>
2
-<pre><% content %></pre>
1
+<!DOCTYPE html>
2
+<html lang="en">
3
+
4
+    <head>
5
+        <title><% title %></title>
6
+        <meta charset="utf-8" />
7
+        <meta x-st-slave="Params: a=b" />
8
+        <meta x-st-slave="Master Revision: 1366856496" />
9
+        <meta x-st-slave="Master: /release/rc.stm" />
10
+        <link rel="stylesheet" href="/main.css" />
11
+        <link rel="alternate" href="/st/release/rc.stm?a=b" />
12
+    </head>
13
+    <body>
14
+
15
+        [% content %]
16
+
17
+    </body>
18
+</html>

+ 2
- 0
views/plain.tt Datei anzeigen

@@ -0,0 +1,2 @@
1
+-<% st_headers %>
2
+-<% warnings %><% content %>

+ 0
- 2
views/st.tt Datei anzeigen

@@ -1,2 +0,0 @@
1
-<% st_headers %>
2
-<% warnings %><% content %>