title: Global template data
body: <p>When doing <code>ExecuteTemplate</code> I see all examples using <code>&amp;whateversruct{Title: "title info", Body: "body info"}</code> to send data to the template to replace the info. I was wondering if its possible to not have to create a struct outside my handler function because every handler function I have is not going to have the same Title, Body. It would be nice to be able to send it a map that replaces the template info. Any thoughts or ideas?</p>
  
  <p>Currently - loosely written
  </p>
  
  <pre><code>type Info struct {
      Title string
      Body string
  }
  
  func View(w http.ResponseWriter) {
      temp.ExecuteTemplate(w, temp.Name(), &amp;Info{Title: "title", Body: "body"})
  }
  </code></pre>
  
  <p>Just seems like creating the struct is unnecessary. And the struct would not be the same for each function you create. So you would have to create a struct for each function (that I know of).</p>