From 73b5eb38c1b15dc9bf8d35c285d0c8019ec33b53 Mon Sep 17 00:00:00 2001
From: Rob Pike
-Make a new directory for this tutorial and cd to it:
+Make a new directory for this tutorial inside your GOPATH
and cd to it:
@@ -551,8 +551,8 @@ to the user.There is an inefficiency in this code:
renderTemplate
calls -ParseFile
every time a page is rendered. -A better approach would be to callParseFile
once for each +ParseFiles
every time a page is rendered. +A better approach would be to callParseFiles
once for each template at program initialization, and store the resultant*Template
values in a data structure for later use.