3 ms·
Gross. It's not a "templating engine" if you have to convert your HTML to a JSON data structure, like in the example.
by icedchai 12y ago
Gross. It's not a "templating engine" if you have to convert your HTML to a JSON data structure, like in the example.
- delmarc 12y agohaha... you are correct... I would think it may be considered more a HTML abstraction which then returns a documentFragment which you can then append anywhere you please... Though, I would argue, at a javascript level that is what is happening... when you create a DOM, it can be broken down into a JSON data structure... document.body.attributes returns all attributes... document.body.children/childNodes returns an array of objects(and nodes depending if you use childNodes)... Just wondering... I didn't like that term either though to be honest... Thank you icedchai...