helidon-io / helidon

Java libraries for writing microservices
https://helidon.io
Apache License 2.0
3.52k stars 564 forks source link

Templating support in helidon static handlers #220

Open gcameo opened 5 years ago

gcameo commented 5 years ago

Is there a way to provide support for some form of templating in Helidon. At the moment, only static html can be rendered. Will be nice to support things like MVEL, Freemarker or some other templating framework so we can have a bit of dynamic content

spericas commented 5 years ago

At least for MP, we could consider integration with Ozark (https://www.mvc-spec.org/).

romain-grecourt commented 5 years ago

We should also able to support some templating in helidon-se with mustach or freemarker.

gcameo commented 5 years ago

https://github.com/fizzed/rocker

romain-grecourt commented 5 years ago

Ok, or rocker like @gcameo suggests ;)

carimura commented 5 years ago

i know this is slightly unrelated to the issue but just for posterity I found a workaround template system that works nicely (and easily) without the need for this ticket to come out of backlog: https://github.com/HubSpot/jinjava

anthonyvdotbe commented 1 day ago

Integration with Ozark would be a good start. A comeback of String Templates would also be useful in this context. For comparison, Quarkus has pretty extensive support for web applications.