brikis98/ping-play

Finish the "Composable Pagelets" implementation and documentation

brikis98 opened this issue · 5 comments

Finish the "Composable Pagelets" implementation and documentation

👍

Driox commented

Hello,

First thank you for this nice project.

I'm trying to mix html and stream template. e.g. I have a tag that insert google analytics code. I want to use the same tag on pages with html format and pages with stream format.

I'm wondering if this issue is about composing pagelet with classical html format ?

@Driox: This GitHub issue is about finishing up a few utilities that would make it easier to build pages by composing together multiple simple standalone endpoints (i.e., each with its own controller, action, templates, etc) into one larger, more complicated endpoint. I discuss an example of this with the LinkedIn homepage in my Composable and Streamable Play Apps talk (slides are here). The Compose.scala class has some of these basic utilities, but it needs tests, a Java API, and documentation, which is why I opened this bug.

Could you open a separate issue for the problems you're having mixing html and streaming formats and provide a concrete example?

Driox commented

Thanks for the explanation, I open a new issue

Note, there is now a new library out that focuses specifically on creating and composing reusable pagelets with Play: splink/pagelets. Perhaps there is a way to get these two projects to work together?