title: Dynamic parameter in Scala template for PlayFramework
body: <p>I would like to do something like that.</p>
  
  <p>Here is the main template : </p>
  
  <pre><code>@(title: String)(content: Html)
  &lt;!DOCTYPE html&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;title&gt;@title&lt;/title&gt;
          &lt;link rel="stylesheet" media="screen" href="@routes.Assets.at("stylesheets/main.css")"&gt;
          &lt;link rel="shortcut icon" type="image/png" href="@routes.Assets.at("images/favicon.png")"&gt;
          &lt;script src="@routes.Assets.at("javascripts/jquery-1.6.4.min.js")" type="text/javascript"&gt;&lt;/script&gt;
      &lt;/head&gt;
      &lt;body&gt;
          @content
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>And here is another one : </p>
  
  <pre><code>@(user: User)
  
  @main(title = "@user.email - SiteName") {
  
      &lt;b&gt;@user.email (@user.role)&lt;/b&gt;
  
  }
  </code></pre>
  
  <p>The later does not work because it failed with the "@user.email" in the <em>title</em> parameter. </p>
  
  <p>How can I do that ?</p>
  
  <p>PS : I know that I can do this another way (add the "- SiteName" in the main template) but it is just an example to understand how Scala works.</p>