commercetools-sunrise-java
commercetools-sunrise-java copied to clipboard
The next generation shop framework by commercetools
- S: Handlebars templates, P: Scala templates - S: Controllers RequestScoped, P: Singleton
- http://www.playframework.com/documentation/2.3.x/JavaContentNegotiation - https://gist.github.com/schleichardt/4e84b6136c81ae317b0e ``` java public Result index() { return result(OK). json(() -> Json.parse("{\"foo\":\"bar\"}")). html(() -> index.render(data().build())); } ``` @lauraluiz I think this approach is better than action composition...
- [ ] Mutable objects are allowed for UI elements using Java Beans.
@trangng I think we don't have anywhere defined how the HTML titles should look like, do we? For example, how should it be the Home page? And the POP, I...
Currently all of them have no scope, which should not be necessary, as they can live longer.
https://github.com/commercetools/commercetools-sunrise-java-cms/pull/1/files/a1ba0f955c7178b85271ee48dbcefaa720449ec5#r63750567
- StatusController should not be a framework controller to work independently from the HTTP, - a 503 for categories can make the version receiving to fail