38 ms·
>you recommend web apps never do any DOM generation Full stop right there and you're correct. I really prefer to limit code that looks like: element.inn
by IanDrake 12y ago
>you recommend web apps never do any DOM generation
Full stop right there and you're correct. I really prefer to limit code that looks like:
element.innerHTML = '<div>Do you really like content in your JS like this?<div>';
I'd rather have the HTML loaded as one file and have the javascript in another acting on that HTML. Right now my favorite library to use for this is Knockoutjs.
- baddox 12y agoKnockout has HTML-esque template too, not unlike Ember or even React.