Show HN: Blueprint: Fast, Nunjucks-like templating engine for Java 8 and beyond

12 freakynit 6 9/1/2025, 10:46:44 AM
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.

https://github.com/freakynit/Blueprint

Comments (6)

nashashmi · 57m ago
We never hear about Java on this forum. That makes a post like this peculiarly interesting
sshine · 1h 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].

  [1]: https://hackage.haskell.org/package/heterocephalus
  [2]: https://crates.io/crates/minijinja
ekspreso · 1h ago
Isn't Pebble Templates similar to this?

https://pebbletemplates.io/

susika · 1h 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?
deanebarker · 1h ago
Syntax looks very much like Liquid. I feel like that syntax is becoming a standard.
whalesalad · 27m ago
afaik django or jinja invented this syntax? then we saw handlebars, which is where liquid got its influence.