From 2c038ee05c25735a16bb97cef25c0287c28579d6 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sat, 21 Jan 2012 14:38:50 -0500 Subject: [PATCH] Testing a very simple template system --- pages/index.mako | 4 +++- support/footer.mako | 2 ++ support/header.mako | 5 +++++ 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 support/footer.mako create mode 100644 support/header.mako diff --git a/pages/index.mako b/pages/index.mako index 980a0d5..60a3543 100644 --- a/pages/index.mako +++ b/pages/index.mako @@ -1 +1,3 @@ -Hello World! +<%include file="header.mako" args="title='Index Page'"/> +

Earwig!

+<%include file="footer.mako"/> diff --git a/support/footer.mako b/support/footer.mako new file mode 100644 index 0000000..308b1d0 --- /dev/null +++ b/support/footer.mako @@ -0,0 +1,2 @@ + + diff --git a/support/header.mako b/support/header.mako new file mode 100644 index 0000000..f8eecb9 --- /dev/null +++ b/support/header.mako @@ -0,0 +1,5 @@ + + +${title} + +