Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I prefer Single Page Application to server side generated HTML.

I am sensible to the pitch of "high productivity" delivered by Play.

Now if I don't use the HTML generation part, is it still valuable? Is it worthwile to learn it? For the controller (REST or other), business logic, persistence.

Does it help generating unit tests?

How do you use it?

Thank you

share|improve this question
up vote 2 down vote accepted

I would yes, you still can use it for SPA.
Play! framework is a stateless framework and it is suitable to write REST API. XML and JSON response, forms validation, Asynchronous HTTP are built in the framework. Akka integration also! I would say these features are convenient for SPA.

Build your frontend with anything you like (Angular.js, Ember.js, ClojureScript ..) and Your server side could be a neat API written in Play! framework.

Play! for Java Developers

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.