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

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -