This commit is contained in:
jdl
2026-06-14 20:00:36 +02:00
parent f301bec9ef
commit 43067677ec
10 changed files with 164 additions and 4 deletions

View File

@@ -0,0 +1 @@
{{define "body"}}{{template "bold" .}}{{end}}

1
test-templates/base.html Normal file
View File

@@ -0,0 +1 @@
<p>{{block "body" .}}default{{end}}</p>

View File

@@ -0,0 +1 @@
{{define "body"}}{{join . ","}}{{end}}

1
test-templates/home.html Normal file
View File

@@ -0,0 +1 @@
{{define "body"}}HOME!{{end}}

View File

@@ -0,0 +1 @@
{{define "bold"}}<b>{{.}}</b>{{end}}

View File

@@ -0,0 +1 @@
{{define "italic"}}<i>{{.}}</i>{{end}}