From 91b7aebde18199e73dd38fa0a737fb8d7e1ad635 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Sun, 22 Dec 2024 23:26:00 +0400 Subject: [PATCH] make the index.html template work with base.html --- templates/index.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/templates/index.html b/templates/index.html index ae164d1..f1f37f6 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,4 +1,5 @@ - -
this is a test from {{ .test }}
- \ No newline at end of file +{{template "base.html"}} +{{define "body"}} +hi, hello
+{{end}} \ No newline at end of file