Files
goview/_examples/echo/views/page.html
2019-04-16 19:10:06 +08:00

19 lines
476 B
HTML

<!-- /views/page.html -->
<!doctype html>
<html>
<head>
<title>{{.title}}</title>
</head>
<body>
<a href="/"><- Back home!</a>
<hr>
This page not use master, Render code:
<pre>goview.Render(w, http.StatusOK, "page.html", goview.M{"title": "Page file title!!"})</pre>
<br>
"page.html" - add extension ".html" will render without master.
<hr>
{{include "layouts/footer"}}
</body>
</html>