Sunday, 8 July 2018

@chooie/js_to_html: a new HTML template engine, all in JavaScript.

Check out the NPM package: https://ift.tt/2NE1IVY library is an attempt to improve the approach of generating HTML server-side. It is, in my mind, an improvement because its entire syntax is described using JS data structures. This allows us to use the tools that we're familiar with when describing the HTML.I'm in the process of exploring how useful something like this might be. So far, I have found the ability to compose arrays, all using the JS functions we're familiar with, pretty intuitive.I recently added simple integration support for Express, documented in the readme.I have a few questions for the community and want to get a discussion going on potential ideas:What, in your mind, are the pros and cons of this approach?How does this approach compare to other template engines (like Pug)?What features are missing? What have I not thought about?What bugs did I miss?

Submitted July 08, 2018 at 07:33PM by charlie_hebert

No comments:

Post a Comment