Building a template cache

This commit is contained in:
2024-04-21 19:41:46 -06:00
parent 72ac372111
commit 682ca8fd9a
4 changed files with 96 additions and 33 deletions

View File

@@ -1,20 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
{{template "base" .}}
</head>
<body>
<div class="container">
<div class="row">
<div class="col">
<h1>This is de about page</h1>
<p>This is some text</p>
{{define "content"}}
<div class="container">
<div class="row">
<div class="col">
<h1>This is de about page</h1>
</div>
</div>
</div>
</div>
</body>
</html>
{{end}}