From 7b6696714142de8deeb5ef4f144ac3ecf8116e3e Mon Sep 17 00:00:00 2001 From: bnewbold Date: Sun, 22 Apr 2012 23:07:35 -0400 Subject: basic HTML templating --- templates/base.html | 8 ++++++++ templates/home.html | 10 ++-------- 2 files changed, 10 insertions(+), 8 deletions(-) create mode 100644 templates/base.html (limited to 'templates') diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..538d7db --- /dev/null +++ b/templates/base.html @@ -0,0 +1,8 @@ +{{ define "HEADER" }} + +bombom + + +{{ end }} +{{ define "FOOTER" }} +{{ end }} diff --git a/templates/home.html b/templates/home.html index 0cc420e..1298241 100644 --- a/templates/home.html +++ b/templates/home.html @@ -1,9 +1,3 @@ - - -bombom - - - +{{ template "HEADER" }}

Home Page

- - +{{ template "FOOTER" }} -- cgit v1.2.3