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>
|
[% 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>
|
|
||||||
|
|
Loading…
Reference in a new issue