Andrea
Andrea

Reputation: 20493

Splitting a Play! 2 application into modules

I am learning Play! 2 for Scala, coming from a Django background. In Django I was used to being able to modularize a project by dividing it in various applications, each having its own models, views, controllers and assets. Does Play! allow a similar subdivision of a project or it is mandatory that everything goes under the app directory?

EDIT I already got the answer, but I will make some examples of the use of Django apps:

and so on

Upvotes: 6

Views: 1076

Answers (2)

agabor
agabor

Reputation: 662

Just a little update on the thread. From 2.1 Play supports routing mapping of sub-modules:

https://github.com/playframework/Play20/blob/master/documentation/manual/Highlights.md#allow-more-modularization-for-your-projects

Upvotes: 2

rretzbach
rretzbach

Reputation: 744

Maybe sub-projects are what you need. It would help if you would describe a little why you want to modularize and what a module should consist of from your point of view.

Upvotes: 4

Related Questions