title: play 2.0 creating a variable and assign values
body: <p>I searched a lot for this issue. I just want to create a variable in a scala html template and needed a temporary variable.</p>
  
  <p>The only solution I found and which makes "sense" is the following:</p>
  
  <pre><code>@defining("hello text") {testvariable =&gt;
      &lt;h1&gt;output of variable: @testvariable&lt;/h1&gt;
  }
  </code></pre>
  
  <p>Is that really the only way? Are the guys from playframework serious? I don't want to pass a variable value from controller to the template. I just want to create a local simple variable and assign a value to it in an "if-block", nothing else.</p>