title: Play Framework 2.0 template engine define writabel variables
body: <p>I'm using the play framework template engine based on scala.
  The controller are written in Java.</p>
  
  <p>Is there a way to define a inline writable variable?</p>
  
  <p>I just found this at the documentation:</p>
  
  <pre><code>@defining(user.getFirstName() + " " + user.getLastName()) {
      &lt;div&gt;Hello @fullName&lt;/div&gt;
  }
  </code></pre>
  
  <p>But this only create a readonly variable.</p>
  
  <p>Edit:
  I am using a loop in my html page:</p>
  
  <pre><code>@for(variable &lt;- variables) {
  </code></pre>
  
  <p>This kind of a loop dosen't give me a index variable.
  I need this index to give different outputs for the first loop and all others.
  Hope this is clear?</p>
  
  <p>So I just thought I could create a index variable outside the loop and increment it on each loop.</p>
  
  <p>Has anyone an idea?
  Thanks</p>