Can I organize my view templates in subdirectories in play 2.1?
I get an compiler error if I have a structure something like this: app/views/common/component.scala.html
Thanks!
Yes , You can structure your template in sub directory. What error you are getting ?? .You may be getting error due to some other reason. if you use app/views/common/component.scala.html then u can access your template from scala class as views.html.common.component()
From html : @common.component
ok, the import in the controller needs to be import views.html.common.*
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With