ソースを参照

Testing a very simple template system

pull/24/head
Ben Kurtovic 13年前
コミット
2c038ee05c
3個のファイルの変更10行の追加1行の削除
  1. +3
    -1
      pages/index.mako
  2. +2
    -0
      support/footer.mako
  3. +5
    -0
      support/header.mako

+ 3
- 1
pages/index.mako ファイルの表示

@@ -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 ファイルの表示

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

+ 5
- 0
support/header.mako ファイルの表示

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

読み込み中…
キャンセル
保存