Show HN: Blueprint: Fast, Nunjucks-like templating engine for Java 8 and beyond
I love the simplicity, expressibility and extendibility of Nunjucks.
But I was not able to find something with similar for Java, especially with the same syntax.
So, built one. And it's pretty fast too.
7 comments
[ 2.1 ms ] story [ 35.1 ms ] threadNormally 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].
https://pebbletemplates.io/
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/
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.