Backbone, jQuery, Angularjs, Ember, Dojo, Yui - and even Dart :)
And of course everything starts with pure js.
For example, injecting HTML without templates usage looks like this:
function View() { this.defaultTemplate = '
',
+''
+''
+''
+'
'+'+''
+''
+''
+'
It looks like a string concatenation horror :)
Or a helper functions, for DOM query, that binds function to global object:
window.$ = document.querySelectorAll.bind(document); window.$$ = document.querySelector.bind(document);
Here's a link to TODOMVC GitHub page
Happy Coding
No comments:
Post a Comment