github.com/servernoj/jade@v0.0.0-20231225191405-efec98d19db1/example/main.go (about) 1 package main 2 3 //go:generate jade -pkg=main -writer -fmt index.jade 4 5 import ( 6 "net/http" 7 ) 8 9 func main() { 10 11 http.HandleFunc("/", func(wr http.ResponseWriter, req *http.Request) { 12 Index("Jade.go", true, wr) 13 }) 14 15 http.ListenAndServe(":8080", nil) 16 }