make the index.html template work with base.html

This commit is contained in:
Sakooooo 2024-12-22 23:26:00 +04:00
parent 9207c31fb7
commit 91b7aebde1
Signed by: sako
GPG key ID: 3FD715D87D7725E0

View file

@ -1,4 +1,5 @@
<html>
<h1>hi</h1>
<p>this is a test from {{ .test }}</p>
</html>
{{template "base.html"}}
{{define "body"}}
<h1> test </h1>
<p> hi, hello </p>
{{end}}