attractively thin, graceful, and stylish
var index = (function () {
'use strict';
function renderMainFragment(root, component) {
var html = document.createElement('html');
var body = document.createElement('body');
html.appendChild(body);
var h1 = document.createElement('h1');
body.appendChild(h1);
h1.appendChild(document.createTextNode("Hello World!"));
return {
mount: function (target, anchor) {
target.insertBefore(html, anchor);
},
teardown: function (detach) {
if (detach) {
html.parentNode.removeChild(html);
}
}
};
}
});
fetch & parse
framework
fetch & parse
application
fetch & parse
application
apply DOM changes
apply DOM changes
interpret/bind templates
evaluate framework
evaluate application
evaluate application