gorepos/template.html
Tianon Gravi 4f39be8f0c Switch to "html/template" and improve the package page
This improves the look of each "package" page, especially with more useful information and links. 👍

Also, this switches the Git clone URLs to "https" (see https://help.github.com/articles/which-remote-url-should-i-use/), and adds an explicit "URL" for each package so we can link to browsable source code.
2015-08-08 09:22:56 -07:00

15 lines
499 B
HTML

<!DOCTYPE html><html>
<head>
<meta charset="utf-8">
<title>{{ .Path }}</title>
<meta name="go-import" content="{{ .Path }} git {{ .Repo }}">
</head>
<body>
<div>package: <code>{{ .Path }}</code></div>
<div>source: <a href="{{ .Url }}">{{ .Url }}</a></div>
<div>godocs:<ul>
<li><a href="https://godoc.org/{{ .Path }}">{{ .Path }}</a></li>{{range .Packages}}
<li><a href="https://godoc.org/{{ $.Path }}/{{ . }}">{{ $.Path }}/{{ . }}</a></li>{{end}}
</ul></div>
</body>
</html>