title: How to call a Scala function from Play html template
body: <p>I am new to Scala/Play Framework.</p>
  
  <p>Currently, I am trying to call a Scala function from my html page: test.scala.html and pass the hash parameters to the Scala function.</p>
  
  <p>I added the following lines to routes:</p>
  
  <pre><code>GET   /hello                      controllers.Application.test
  POST  /hello                      controllers.Application.hello
  </code></pre>
  
  <p>In my test.scala.html I have:</p>
  
  <pre><code>@params = { window.location.hash }
  @helper.form(action = routes.Application.hello) {
  
  }
  </code></pre>
  
  <p>And my hello function is defined as:</p>
  
  <pre><code> def hello() = Action {
     Ok("Hello !")
   }
  </code></pre>
  
  <p>I am completely confused by the concept of routing and @ so I am not too sure which part I did right and which part I did wrong. Please point out my mistakes.</p>
  
  <p>Thanks in advance.</p>