Explorar el Código

Testing a very simple template system

pull/24/head
Ben Kurtovic hace 12 años
padre
commit
2c038ee05c
Se han modificado 3 ficheros con 10 adiciones y 1 borrados
  1. +3
    -1
      pages/index.mako
  2. +2
    -0
      support/footer.mako
  3. +5
    -0
      support/header.mako

+ 3
- 1
pages/index.mako Ver fichero

@@ -1 +1,3 @@
Hello World!
<%include file="header.mako" args="title='Index Page'"/>
<p>Earwig!</p>
<%include file="footer.mako"/>

+ 2
- 0
support/footer.mako Ver fichero

@@ -0,0 +1,2 @@
</body>
</html>

+ 5
- 0
support/header.mako Ver fichero

@@ -0,0 +1,5 @@
<html>
<head>
<title>${title}</title>
</head>
<body>

Cargando…
Cancelar
Guardar