title: Play framework: passing multiple implicit parameters through templates
body: <p>I'm using Play 2.0.2 and I'm having a problem with implicit parameters in one particular view template setup.  I'll describe it the best I can but it's not exactly trivial so I apologize in advance for any confusion.</p>
  
  <p>Central to the issue is a template I have called "piece".  piece takes these parameters:</p>
  
  <pre><code>@(piecesData: objects.PiecesDataRequest)(implicit content: Html)
  </code></pre>
  
  <p>The content parameter is implicit because I am calling this template from another template as well as from a controller.  I could not find a way to explicitly pass "empty" Html to the piece template from the controller, however it works if I implicitly pass the content param.  The template using piece is "pieceUploadModal" which takes these parameters:</p>
  
  <pre><code>@(piecesData: objects.PiecesDataRequest, 
    pieceData: objects.PieceDataRequest, dialogTitle: String)
  </code></pre>
  
  <p>and calls piece like this:</p>
  
  <pre><code>@pieces(piecesData){ [Html] }
  </code></pre>
  
  <p>Now I want to add a second implicit param to piece which changes its param list too:</p>
  
  <pre><code>@(piecesData: objects.PiecesDataRequest)(implicit content: Html, user: User)
  </code></pre>
  
  <p>and I assumed then that I would need to change the pieceUploadModal template params too:</p>
  
  <pre><code>@(piecesData: objects.PiecesDataRequest, 
    pieceData: objects.PieceDataRequest, dialogTitle: String)(implicit user: User)
  </code></pre>
  
  <p>And be good to go... however, I get an error that isn't very helpeful:</p>
  
  <pre><code>pieceUploadModal.template.scala:24: not enough arguments for method apply: 
  (implicit      content: play.api.templates.Html, 
  implicit user: models.User)play.api.templates.Html in object pieces.
  [error] Unspecified value parameter user.
  [error] """),_display_(Seq[Any]
  (/*3.2*/views/*3.7*/.html.content.pieces(piecesData)/*3.39*/
  {_display_(Seq[Any] (format.raw/*3.40*/("""
  </code></pre>
  
  <p>I have been trying to get this to work in many different ways for a couple of hours and done numerous internet searches to no avail.  Any help would be appreciated.</p>
  
  <p>As a last piece of information, I will add that the paradigm I'm using here of passing the user implicitly works with all of my other templates that are <em>not</em> using the implicit Html parameter, i.e. I believe that is the crux of the issue here.</p>