Documentation
¶
Index ¶
- Variables
- func LogRequest(r *http.Request)
- func ProcessHTMLTemplate(w http.ResponseWriter, templatePath string, data interface{}) error
- func ProcessTextTemplate(w http.ResponseWriter, templatePath string, data interface{}) error
- func RefuseUnsupportedMethods(w http.ResponseWriter, r *http.Request) error
- type FrontMatter
- type PageData
- type PostRoute
Constants ¶
This section is empty.
Variables ¶
View Source
var Version string = "(development version)"
to set this, use `go build -ldflags "-X util.Version=$(git describe --always --tags --dirty)"`
Functions ¶
func LogRequest ¶
func ProcessHTMLTemplate ¶
func ProcessHTMLTemplate(w http.ResponseWriter, templatePath string, data interface{}) error
func ProcessTextTemplate ¶
func ProcessTextTemplate(w http.ResponseWriter, templatePath string, data interface{}) error
func RefuseUnsupportedMethods ¶
func RefuseUnsupportedMethods(w http.ResponseWriter, r *http.Request) error
Types ¶
type FrontMatter ¶
func ParseFrontmatter ¶
func ParseFrontmatter(path string) (error, *FrontMatter)
func RenderMarkdown ¶
func RenderMarkdown(path string) (error, []byte, *FrontMatter)
type PostRoute ¶
type PostRoute struct {
Route string
Matter FrontMatter
}
Click to show internal directories.
Click to hide internal directories.