r/learnjavascript • u/wasitshafi • 55m ago
Template engine EJS vs Eta for a new Node.js project with SSR(don't want to use NextJS), which to choose?
Hi,
I am about to start a new project with SSR (Node.js); previously, I have used ejs/handlebars. Currently, I am not very familiar much eta.
eta claims to be faster than ejs, anyone worked with both?
Highly appreciate your suggestions/comments.
ejs: https://www.npmjs.com/package/ejs
eta: https://www.npmjs.com/package/eta
Thanks
1
Upvotes
1
u/Discordbothost 27m ago
I'd start with EJS since you already know it. If speed's a concern, render one real page with both engines after warming the template caches. Time the render separately from the DB call so you can see how much switching engines could save.