diff options
-rw-r--r-- | public/mailbox.html | 2 | ||||
-rw-r--r-- | template.go | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/public/mailbox.html b/public/mailbox.html index 2f5cdb6..efae0d9 100644 --- a/public/mailbox.html +++ b/public/mailbox.html @@ -5,7 +5,7 @@ <p>Mailboxes:</p> <ul> {{range .Mailboxes}} - <li>{{.Name}}</li> + <li><a href="/mailbox/{{.Name}}">{{.Name}}</a></li> {{end}} </ul> diff --git a/template.go b/template.go index fae5c7f..c7db0ae 100644 --- a/template.go +++ b/template.go @@ -1,7 +1,6 @@ package koushin import ( - "fmt" "html/template" "io" @@ -12,8 +11,6 @@ type tmpl struct { t *template.Template } -var _ = fmt.Printf - func (t *tmpl) Render(w io.Writer, name string, data interface{}, c echo.Context) error { return t.t.ExecuteTemplate(w, name, data) } |