scala - Grouping Play 2.0 views into packages/folders -
i'm trying solve possibly simple problem, in 'views' directory, in typical play framework setup, group templates (*.scala.html files) groups, possibly using folder each group, eg. have customers folder following files in it:
createform.scala.html
editform.scala.html
list.scala.html
so far when try access view reference controller (eg. ok(views.html.list(..))
-> ok(views.customers.html.list(...)
), error:
object customers not member of package views
is there best practice/receipe on how work multiple views, how gather them groups , how use them in other views or controllers.
thx in advance.
the way template engine works template defined as:
/views/application/index.scala.html
will turned class:
views.html.application.index
so views.html
kept prefix. cf. play template documentation.
in case means should
ok(views.html.customers.list(...))
Comments
Post a Comment