title: plain Scala Templates in Play 2.0
body: <p>Since Intellij does not yet support the Play-Scala-Template-Engine I was thinking about using plain Scala for the time being, since having no code-completion, import help really slows my development down.</p>
  
  <p>Is it possible to use <strong>plain Scala</strong>, not the @-ish wrapper, as a template-engine in Play 2.0? I guess that I could simply <code>return ok(Htmp.apply("fooo"))</code> from my (java) controllers and construct view-generating static methods in scala as my pseudo-templates, but I would like the overall structure of the project to similar to the "original".</p>
  
  <p>To illustrate:</p>
  
  <p>a normal template for my <code>Meetings</code>-Controller would be stored in </p>
  
  <p><code>/app/views/Meetings/list.scala.html</code></p>
  
  <p>and look something akin to this:</p>
  
  <pre><code>@(currentUser: User, meetings: Set[Meeting])
  
  @main("Possible Meeting Dates") {
   @for(meeting &lt;- meetings){
    "do fancy layout"
   }
  }
  </code></pre>
  
  <p>I <strong>would want</strong> the whole thing to be stored under </p>
  
  <p><code>/app/views/Meetings/list.scala</code></p>
  
  <p>and contain something akin to this:</p>
  
  <pre><code>import play.api.templates._
  
  def render(user: User, meetings:Set[Meeting]): Html = {
    Html("doing the layout here")
  }
  </code></pre>
  
  <p>So my IDE gets that this is Scala and helps accordingly. Doing the latter whilst renaming the file to <code>list.scala.html</code> does not quite work: <code>play compile</code> causes some reference to be generated. I am able to call </p>
  
  <p><code>views.html.Meetings.list.render()</code></p>
  
  <p>like expected, but it does not take any parameters.</p>
  
  <p>Do I need to adhere to a certain signature for the compiler-magic to work, or does this whole Idea simply not work?</p>