I just started using the Play2.0 Framework and I'm trying to use the main template in my home/index
template. The issue I'm having is it can't find "main" when its in the Shared folder, if I take it out and put it in the Views root then it works fine.
So I'm wondering how I can reference the main.scala.html
from index.scala.html
?
My folder structure is as follows:
- Views
- Home
- index.scala.html
- Shared
- main.scala.html
- Home
My code in index.scala.html
is:
@head = {
}
@content = {
<b>Home Screen</b>!!
}
ERROR: @main(title = "Home",head, content)
The error I get is:
not found: value main.
See Question&Answers more detail:os