title: Calling a template with several pipeline parameters
body: <p>In a Go template, sometimes the way to pass the right data to the right template feels awkward to me. Calling a template with a pipeline parameter looks like calling a function with only one parameter.</p>
  
  <p>Let's say I have a site for Gophers about Gophers. It has a home page main template, and a utility template to print a list of Gophers.</p>
  
  <p><a href="http://play.golang.org/p/Jivy_WPh16" rel="noreferrer">http://play.golang.org/p/Jivy_WPh16</a></p>
  
  <p>Output :</p>
  
  <pre><code>*The great GopherBook*    (logged in as Dewey)
  
      [Most popular]  
          &gt;&gt; Huey
          &gt;&gt; Dewey
          &gt;&gt; Louie
  
      [Most active]   
          &gt;&gt; Huey
          &gt;&gt; Louie
  
      [Most recent]   
          &gt;&gt; Louie
  </code></pre>
  
  <p>Now I want to add a bit of context in the subtemplate : format the name "Dewey" differently inside the list because it's the name of the currently logged user. But I can't pass the name directly because there is <a href="http://golang.org/pkg/text/template/#hdr-Actions" rel="noreferrer">only one</a> possible "dot" argument pipeline! What can I do? </p>
  
  <ul>
  <li>Obviously I can copy-paste the subtemplate code into the main template (I don't want to because it drops all the interest of having a subtemplate).</li>
  <li>Or I can juggle with some kind of global variables with accessors (I don't want to either).</li>
  <li>Or I can create a new specific struct type for each template parameter list (not great).</li>
  </ul>