31 lines
579 B
Go
31 lines
579 B
Go
package mono
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"dofdev/tem"
|
|
"dofdev/web/pages/games"
|
|
"dofdev/web/pages/moves"
|
|
"dofdev/web/pages/projects"
|
|
)
|
|
|
|
func Handler(w http.ResponseWriter, r *http.Request) {
|
|
data := struct {
|
|
TopHash string
|
|
Moves map[string]moves.Move
|
|
Games map[string]games.Game
|
|
Projects map[string]projects.Project
|
|
}{
|
|
TopHash: "silo",
|
|
Moves: moves.Moves,
|
|
Games: games.Games,
|
|
Projects: projects.Projects,
|
|
}
|
|
tem.Render(
|
|
w, r,
|
|
"mono.html",
|
|
"dofdev",
|
|
"an effort to open higher degrees of spatial interaction free to the world.",
|
|
data,
|
|
)
|
|
}
|