18 lines
358 B
Go
18 lines
358 B
Go
package handlers
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"gitea.sitodosi.com/betology/curso/pkg/render"
|
|
)
|
|
|
|
// Home is the home page handler
|
|
func Home(w http.ResponseWriter, r *http.Request) {
|
|
render.RenderTemplate(w, "home.page.tmpl")
|
|
}
|
|
|
|
// About is the about page handler
|
|
func About(w http.ResponseWriter, r *http.Request) {
|
|
render.RenderTemplate(w, "about.page.tmpl")
|
|
}
|