jquery-template icon indicating copy to clipboard operation
jquery-template copied to clipboard

is this still a viable option over handlebars.js or mustache.js?

Open halukkaramete opened this issue 1 year ago • 1 comments

Hi,

I've learned aobut your tool reading https://www.sitepoint.com/overview-javascript-templating-engines/

I was expecting to find a large community from the article's sounding of it. But here, it feels like a lonely place. Last communication was in 2021.

Is this an abandoned project?

halukkaramete avatar Dec 18 '24 16:12 halukkaramete

Hi there! You're right about the reduced activity. While templating engines were revolutionary for their time, modern JavaScript has evolved to provide better native solutions. The most straightforward approach today is using template literals:

const template = (data) => `
  <div class="card">
    <h2>${data.title}</h2>
    <p>${data.description}</p>
  </div>
`;

This built-in JavaScript feature provides clean, readable syntax for string interpolation without requiring any external dependencies. It's now the preferred way to handle simple templating needs.

sinand avatar Dec 18 '24 21:12 sinand