Create separate 'header' and 'footer' partials

This commit is contained in:
swaggboi 2023-10-07 10:26:25 -04:00
parent 8c7182959d
commit 6bb2fd8ef4
3 changed files with 11 additions and 8 deletions

2
templates/footer.tt Normal file
View File

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

6
templates/header.tt Normal file
View File

@ -0,0 +1,6 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>[% title %]</title>
</head>
<body>

View File

@ -1,10 +1,5 @@
<!DOCTYPE html> [% SET title = 'Test page' %]
<html lang="en"> [% INCLUDE 'header' %]
<head>
<title>Test page</title>
</head>
<body>
<h1>Ayy...</h1> <h1>Ayy...</h1>
<p>lmao</p> <p>lmao</p>
</body> [% INCLUDE 'footer' %]
</html>