aboutsummaryrefslogtreecommitdiffstats
path: root/template.go
diff options
context:
space:
mode:
Diffstat (limited to 'template.go')
-rw-r--r--template.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/template.go b/template.go
new file mode 100644
index 0000000..7c13451
--- /dev/null
+++ b/template.go
@@ -0,0 +1,14 @@
1package main
2
3var tpltext = `<!doctype html>
4<html>
5<head>
6<meta charset="utf-8">
7<title>{{.Title}}</title>
8</head>
9<body>
10<pre>
11{{range .Lines}} {{if .Link}}({{.Type}}) <a href="{{.Link}}">{{.Text}}</a>{{else}} {{.Text}}{{end}}
12{{end}}</pre>
13</body>
14</html>`