简体   繁体   中英

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM