title: Scala XML: brace escapes in attributes
body: <p>I'm fiddling around with scala's XML capabilities, trying to produce some xhtml form. Here's what I got:</p>
  
  <pre><code>class LoginForm {
      var title = "Login"
      var username = ""
      def content =
          &lt;div class="login"&gt;
              &lt;h1&gt;{this.title}&lt;/h1&gt;
              &lt;input type="text" name="username" value="{this.username}" /&gt;
          &lt;/div&gt;
  }
  var f = new LoginForm
  f.username = "foo"
  f.content
  </code></pre>
  
  <p>When the code is run, the title is interpolated as expected, but the value of the input element is not. Why is this? And is there a way around that problem?</p>