It's a React renderer that works on Java backend by using GraalVM, and then the same JS template continues to work in browser.
susika 3 days ago [-]
Looks interesting. For me I settled on JTE as the go-to template engine for Java. For anyone curious: https://jte.gg
@freakynit - have you seen this one before? how's it compares with Blueprint?
freakynit 2 days ago [-]
Powerful. But I absolutely adore nunjucks syntax and how easy it is to extend it. Hence, I built Blueprint to give me that same feel in Java.
I have used this btw, professionally :)
sshine 3 days ago [-]
Good to know.
Normally I'd use Spring Boot and get the batteries-included experience if I ever were to make web with Java.
But I could totally imagine needing a pure, well-made, zero-deps template engine for custom jobs.
I certainly have similar libraries in my bookmarks for other languages, like Haskell [1] and Rust [2].
While templates are a big part of Flavour, it also includes routing, components, and idiomatic invocation of Java services.
The book on Flavour is here: https://frequal.com/Flavour/book.html
Example 5-letter word game single-page app made with 100% Java, 100% Flavour: https://frequal.com/wordii/
It's a React renderer that works on Java backend by using GraalVM, and then the same JS template continues to work in browser.
I have used this btw, professionally :)
Normally I'd use Spring Boot and get the batteries-included experience if I ever were to make web with Java.
But I could totally imagine needing a pure, well-made, zero-deps template engine for custom jobs.
I certainly have similar libraries in my bookmarks for other languages, like Haskell [1] and Rust [2].
I will checkout blueprint. A zero dependency library is always a bonus. I don’t see any mention of thread safety in the docs for the engine though.
I have just pushed small update to make even these thread-safe now. Entire library is now fully thread-safe.
Updated README as well.
Thanks for pointing this out.
https://pebbletemplates.io/