mirror of https://github.com/jlelse/GoBlog
13 lines
277 B
Go
13 lines
277 B
Go
|
package main
|
||
|
|
||
|
import "net/http"
|
||
|
|
||
|
func serveCustomPage(blog *configBlog, page *customPage) func(w http.ResponseWriter, r *http.Request) {
|
||
|
return func(w http.ResponseWriter, r *http.Request) {
|
||
|
render(w, page.Template, &renderData{
|
||
|
Blog: blog,
|
||
|
Data: page.Data,
|
||
|
})
|
||
|
}
|
||
|
}
|