From 6bb2fd8ef4a817558a06365d57d1aea003bfd257 Mon Sep 17 00:00:00 2001 From: swaggboi Date: Sat, 7 Oct 2023 10:26:25 -0400 Subject: [PATCH] Create separate 'header' and 'footer' partials --- templates/footer.tt | 2 ++ templates/header.tt | 6 ++++++ templates/index.tt | 11 +++-------- 3 files changed, 11 insertions(+), 8 deletions(-) create mode 100644 templates/footer.tt create mode 100644 templates/header.tt diff --git a/templates/footer.tt b/templates/footer.tt new file mode 100644 index 0000000..308b1d0 --- /dev/null +++ b/templates/footer.tt @@ -0,0 +1,2 @@ + + diff --git a/templates/header.tt b/templates/header.tt new file mode 100644 index 0000000..0440a28 --- /dev/null +++ b/templates/header.tt @@ -0,0 +1,6 @@ + + + + [% title %] + + diff --git a/templates/index.tt b/templates/index.tt index 0d12724..5d2b3fa 100644 --- a/templates/index.tt +++ b/templates/index.tt @@ -1,10 +1,5 @@ - - - - Test page - - +[% SET title = 'Test page' %] +[% INCLUDE 'header' %]

Ayy...

lmao

- - +[% INCLUDE 'footer' %]