gopherproxy/template.go

15 lines
265 B
Go
Raw Normal View History

2016-09-22 02:51:46 +00:00
package main
var tpltext = `<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>{{.Title}}</title>
</head>
<body>
<pre>
{{range .Lines}} {{if .Link}}({{.Type}}) <a href="{{.Link}}">{{.Text}}</a>{{else}} {{.Text}}{{end}}
{{end}}</pre>
</body>
</html>`