There are a lot of options to choose from when it comes to templating engines. Same of the most popular ones include Pug(Jade), Handlebars, Mustache, Nunjucks, EJS, Dust, etc..
So far I've tried just Pug and EJS and I must say I prefer EJS without a doubt. Each one is not that hard to learn, so it's worth investigating each one.
Which ones have you tried and which one did you settle on?
Top comments (7)
JSX is actually the best, when it also works well with IDEs and TypeScript. It also avoid learning new languages in the category called Templating Engines.
Template string literals. Even though it is technically a function, I never really need to write the function directly. Generally very intuitive.
Actually, truthfully, I am currently using EJS, and retiring Pug.
I have mostly used pug, but I like ejs too
I like Nunjucks, it's great, has more features and easier to write/read compared to EJS
Just to throw a specialized one in there... I really love the role liquid plays.
We use it sparingly, but itβs a delightful approach IMO.
I just like using Handlebars.
EJS and Handlebars... but I would really love to work with React or Svelte these days.
If I say Thymeleaf,how long it take for JS devs to recognise that there are other platforms for web-development? :)