()
| 321 | } |
| 322 | |
| 323 | func render404() { |
| 324 | if verbose() { |
| 325 | fmt.Println("Rendering 404") |
| 326 | } |
| 327 | tmpl := template.New("404") |
| 328 | template.Must(tmpl.Parse(mustReadFile("templates/footer.tmpl"))) |
| 329 | template.Must(tmpl.Parse(mustReadFile("templates/404.tmpl"))) |
| 330 | file, err := os.Create(siteDir + "/404.html") |
| 331 | check(err) |
| 332 | defer file.Close() |
| 333 | check(tmpl.Execute(file, "")) |
| 334 | } |
| 335 | |
| 336 | func main() { |
| 337 | if len(os.Args) > 1 { |
no test coverage detected