Re:Show HN: Objectified – An all JSON-HTML templating engine...
by icedchai on Wednesday May 28, 2014 @05:01PM
(#7812912)
Gross. It's not a "templating engine" if you have to convert your HTML to a JSON data structure, like in the example.
[ Parent
| on HN ]
Re:Show HN: Objectified – An all JSON-HTML templating engine...
by delmarc on Wednesday May 28, 2014 @06:11PM
(#7813301)
haha... 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...