~nature/galaxy-go

44104474acc83e2e555e7cf78d000ab72741eb39 — LordNature 4 years ago 69a8873
templates: Moved files from tmp/ to templates/
8 files changed, 2 insertions(+), 2 deletions(-)

M main.go
R tmp/base.html => templates/base.html
R tmp/footer.html => templates/footer.html
R tmp/head.html => templates/head.html
R tmp/index.html => templates/index.html
R tmp/nav.html => templates/nav.html
R tmp/view.html => templates/view.html
R tmp/vip.html => templates/vip.html
M main.go => main.go +2 -2
@@ 12,7 12,7 @@ import (
)

// caches templates; if non-existentant, panic
var templates = template.Must(template.ParseGlob("tmp/*.html"))
var templates = template.Must(template.ParseGlob("templates/*.html"))
var quotes, _ = fetchLines("static/quotes.txt")

func indexHandler(w http.ResponseWriter, r *http.Request) {


@@ 73,4 73,4 @@ func main() {
	if err != nil {
		panic(fmt.Errorf("Failed to start HTTP server: %v", err))
	}
}
\ No newline at end of file
}

R tmp/base.html => templates/base.html +0 -0
R tmp/footer.html => templates/footer.html +0 -0
R tmp/head.html => templates/head.html +0 -0
R tmp/index.html => templates/index.html +0 -0
R tmp/nav.html => templates/nav.html +0 -0
R tmp/view.html => templates/view.html +0 -0
R tmp/vip.html => templates/vip.html +0 -0