1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-05 03:07:38 +00:00

minor: examples

This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-08-30 15:26:50 +03:00
parent a3279b8fa9
commit 600eb645df
6 changed files with 125 additions and 31 deletions

View File

@@ -0,0 +1,27 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML Template Example</title>
</head>
<body>
<h2>{{.Name}}</h2>
<h3>{{.Age}}</h3>
<h4>Slice</h4>
{{range $idx, $item := .Items}}
{{ $idx }} - {{ $item }} <br/>
{{end}}
<h4>Map</h4>
{{range $key, $value := .Map}}
{{ $key }} - {{ $value }} <br/>
{{end}}
<hr/>
<strong>Read more at: <a href="https://golang.org/pkg/html/template" target="_new">
https://golang.org/pkg/html/template</a>
</strong>
</body>
</html>