News Score: Score the News, Sort the News, Rewrite the Headlines

Templating in JavaScript, From Zero Dependencies on Up

Imagine you want to do some simple templating. By simple I mean: you have some data and you want to turn it into HTML. No interactivity or event handlers. No virtual DOM. Just data turned into HTML, server- or client-side. There are so many ways to template now-a-days. Each one of these files has its own vocabulary for templating (and their own framework-specific features and quirks): .jsx .vue .svelte .astro .njk .liquid .hbs .mustache .ejs .haml .pug Each one is an abstraction, which means you...

Read more at blog.jim-nielsen.com

© News Score  score the news, sort the news, rewrite the headlines