This repository has been archived on 2019-06-24. You can view files and clone it, but cannot push or open issues or pull requests.
old_website/actions/docs.go

27 lines
405 B
Go

package actions
import (
"strings"
"github.com/go-xweb/xweb"
)
// DocsRouter serves about page.
type DocsAction struct {
baseAction
get xweb.Mapper `xweb:"/"`
}
func toLower(l string) string {
return strings.ToLower(l)
}
// Get implemented Get method for DocsRouter.
func (this *DocsAction) Get() error {
return this.Render("docs.html", &xweb.T{
"IsDocs": true,
"toLower": toLower,
})
}