The code shows some examples of how to:
- Compose standalone endpoints (controllers) to build a more complex page from simpler parts
- A prototype of Facebook's BigPipe for Play: that is, tools to break a page into "pagelets" and stream each pagelet to the browser as soon as the data is available.
This is just prototype code, intended for demonstration and education. There are no tests, so I wouldn't recommend tossing it directly into production :)
How to run the app
How to browse the code
The main example code to look at:
app/controllers/Wvyuare examples of simple, standalone modules.
app/controllers/Aggregatorshows how these modules can be combined to build a more complicated module.
app/controllers/WvypStreamshows how to stream the contents of a module using a BigPipe approach.
app/uia reusable library for composing modules and streaming HTML.
This code is available under the MIT license. See the LICENSE file for more info.