Looks like an interesting templating engine: https://github.com/fizzed/rocker
+1 very interesting
+1
It's like in Play framework!
Will it fit Spring Boot's ModelAndView? I think, not very well. Roker expects typed positional parameters to a compiled template, where Model provides Map-like container for data.
Of course, rocker template could be called directly from controller.
Will it fit Spring Boot's ModelAndView? I think, not very well. Roker expects typed positional parameters to a compiled template, where Model provides Map-like container for data.
Actually, it supports both, see this link.
Of course, rocker template could be called directly from controller.
That's what I've been doing, it's actually very easy to return the RockerModel and register an HttpMessageConverter to do the job (example here).
Hi @philwebb Can i add rocker template example under spring-boot-sample-rocker-template, can you guide on this. Thanks
@nishantraut It's probably too early to know if we want to provide integration for this. If you want to experiment I'd suggest creating a small sample application outside of the Spring Boot repo to see what's involved. Please report back here if you make progress and we can take a look.
Hi @philwebb Someone already experimented https://github.com/linux-china/rocker-template-demo
Please let me know any further improvement is needed.
I created a fork (template-benchmark) with updated popular Java template engines:
Result (the higher the score, the better):

Hi, I'm wondering about what the goals behind this issue. Are they not already reached? If not, what is missing?
@wagnerluis1982 I don't think anything has really been looked at yet. I raised the issue a couple of years ago just as a templating technology that we should keep our eye on to see how many people adopt it. In hindsight, I'm not sure that we should continue with this one. I've put it on hold for now and we'll discuss it as a team.
After some discussion we feel like it would be better for a external project to exist for Rocker Spring support. If such a project existed, we could consider auto-configuration support in Spring Boot.
Most helpful comment
I created a fork (template-benchmark) with updated popular Java template engines:
Result (the higher the score, the better):
