make the index.html template work with base.html
This commit is contained in:
parent
9207c31fb7
commit
91b7aebde1
1 changed files with 5 additions and 4 deletions
|
@ -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}}
|
Loading…
Reference in a new issue