This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"net/http" | |
"path" | |
) | |
var fshandler = http.FileServer(http.Dir("assets/")) | |
func scrubber(w http.ResponseWriter, r *http.Request) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html> | |
{{template "header"}} //this i want executed before runtime | |
<body> | |
{{template "navbar" "Blog"}} //same with this | |
</body> | |
//all this should only be executed at runtime | |
MAGIC ESCAPE THINGY | |
{{.title}} |
NewerOlder