Search code examples
javascripthtmltemplates

Templating engine without a backend?


I'm building a very simple, entirely front end app for a class and I need a JS templating engine. I want to generate HTML elements from a JSON file, and I want to use partials from separate files. Ideally I'd prefer to use vanilla JS and no jQuery.

I've been looking into Mustache, Handlebars, EJS and several others, but the options are overwhelming and I just want something simple.

What would you recommend?


Solution

  • I would suggest taking a look at https://engineering.linkedin.com/frontend/client-side-templating-throwdown-mustache-handlebars-dustjs-and-more

    Go straight the "The four finalists section" where you can find pros and cons for each.