Enhanced Features: html template support layout
such as:
layout.html
```html
{{define "layout"}}
<!DOCTYPE html>
<html>
<head>
<title>{{index . "Title"}}</title>
</head>
<body>
<header><h1>My Site</h1></header>
{{template "content" .}}
<footer>© copyright</footer>
</body>
</html>
{{end}}
```
index.html
```html
{{define "content"}}
<p>Welcome to the home page!</p>
{{end}}
```
I would like to implement enhanced features.
0 条评论