Create separate 'header' and 'footer' partials
This commit is contained in:
parent
8c7182959d
commit
6bb2fd8ef4
2
templates/footer.tt
Normal file
2
templates/footer.tt
Normal file
|
@ -0,0 +1,2 @@
|
|||
</body>
|
||||
</html>
|
6
templates/header.tt
Normal file
6
templates/header.tt
Normal file
|
@ -0,0 +1,6 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>[% title %]</title>
|
||||
</head>
|
||||
<body>
|
|
@ -1,10 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Test page</title>
|
||||
</head>
|
||||
<body>
|
||||
[% SET title = 'Test page' %]
|
||||
[% INCLUDE 'header' %]
|
||||
<h1>Ayy...</h1>
|
||||
<p>lmao</p>
|
||||
</body>
|
||||
</html>
|
||||
[% INCLUDE 'footer' %]
|
||||
|
|
Loading…
Reference in a new issue