mirror of
https://github.com/jlelse/GoBlog
synced 2024-06-02 13:24:27 +00:00
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,
|
||
|
})
|
||
|
}
|
||
|
}
|