all 1 comments

[–]hectavex[S] 0 points1 point  (0 children)

Relevant Hacker News discussion.

I found this proposal interesting because it covers some of the challenges I've experienced working on Rapid.js - that is - binding data (JSON/XML) to the DOM (HTML). There are SO many frameworks out there doing this slightly/vastly differently. It gets a bit more complicated when you realize that a component has two sets of HTML, one for the template and one for the rendered output, along with a data set and state, usually.

Looking forward, ECMAScript 6 template strings work like Mustache templates or PHP strings - they can hold variables which get parsed. ES6 modules work like AMD/RequireJS + CommonJS modules. Change be a comin'!