5 ms·
Ask HN: Alternative to HandlebarsJS for Small Projects
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.
- lifeisstillgood 5y agoHandlebars 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
- stevenhubertron 5y agoHave 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.
- lifeisstillgood 5y agoNo but I do plan to rewrite them in Python ...
- lioeters 5y agoI've been using Eta: https://eta.js.org/ 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.
- motyar 5y agoTry Mustache https://mustache.github.io/ https://mustache.github.io/ Planing to use it on new SEO project https://vim.expert https://vim.expert
- aregsar 5y agoYou might try petite-vue