Ask HN: Alternative to HandlebarsJS for Small Projects

2 points by stevenhubertron ↗ HN
I have been using handlebars for years now for small production projects. For example a single page of digital signage displaying the output of a JSON endpoint. It's been great for that but I feel like I may want to experiment with something new that can optimize my images at build time, gzip etc... What else out there these days can be used for this purpose? React/Next is overkill and to be frank not my skillset.

6 comments

[ 1505 ms ] story [ 2797 ms ] thread
Handlebars seems to me to be the right level of abstraction - it's done for me quite well in the past. And if I reach out for a web framework again I think I will not stray far. Good luck with your search
Have you found a way to precompile the templates on save and enable gzip/brotli compression on build? Any sort of Parcel plugins are years old and filled with caveats.
I've been using Eta: https://eta.js.org/

It doesn't do gzip or image optimization, but such features might be better suited as server middlewares separate from the template engine.

You might try petite-vue