I refactored the application so pagelets will have their own real MVC structure, which means that each pagelet will have controller responsible for making the Rest call and rendering the content.
The main page template will only call the sub-templates for providing place holders. And the main controller will only call the sub-controllers for providing HtmlStream.
I would really appreciate any comment, since I'm just starting with both Scala and Play.
I left a few comments in the code, but to be honest, I'm not sure I fully understand the goal of the pull request. Can you describe it a bit more? Thanks!
I refactored the application so pagelets will have their own real MVC structure, which means that each pagelet will have controller responsible for making the Rest call and rendering the content.
The main page template will only call the sub-templates for providing place holders. And the main controller will only call the sub-controllers for providing HtmlStream.
I would really appreciate any comment, since I'm just starting with both Scala and Play.