From 8a5030aa88a1e446fae887ad61d8f8206e7bf94c Mon Sep 17 00:00:00 2001 From: Mark McClain Date: Wed, 5 Jan 2011 10:37:36 -0500 Subject: [PATCH] port the sample templates over to Mako --- templates/project/+egg+/templates/index.html | 19 +++++++------ templates/project/+egg+/templates/layout.html | 27 ++++++++++++------- .../project/+egg+/templates/success.html | 15 ++++++----- 3 files changed, 36 insertions(+), 25 deletions(-) diff --git a/templates/project/+egg+/templates/index.html b/templates/project/+egg+/templates/index.html index 2411552..8cbcfa2 100644 --- a/templates/project/+egg+/templates/index.html +++ b/templates/project/+egg+/templates/index.html @@ -1,8 +1,11 @@ - - - Welcome to Pecan! - - +<%inherit file="layout.html" /> + +## provide definitions for blocks we want to redefine +<%def name="title()"> + Welcome to Pecan! + + +## now define the body of the template

Welcome to Pecan

@@ -10,7 +13,7 @@ @@ -40,5 +43,5 @@ - - \ No newline at end of file + + diff --git a/templates/project/+egg+/templates/layout.html b/templates/project/+egg+/templates/layout.html index 7cf7c06..449fcf5 100644 --- a/templates/project/+egg+/templates/layout.html +++ b/templates/project/+egg+/templates/layout.html @@ -1,13 +1,20 @@ - Default Title - - - - - + diff --git a/templates/project/+egg+/templates/success.html b/templates/project/+egg+/templates/success.html index 4a1c14e..c51430d 100644 --- a/templates/project/+egg+/templates/success.html +++ b/templates/project/+egg+/templates/success.html @@ -1,11 +1,12 @@ - - - Success! - - +<%inherit file="layout.html"/> + +## override the title +<%def name="title()"> + Success! + + +## now define the body

Success!

Your form submission was successful! Thanks, ${name}!

- - \ No newline at end of file