https://github.com/enyojs/enyo/blob/master/source/dom/Contro...
Technically, you could probably replace the document.write with something like:
var scripts = document.getElementsByTagName('script');
var current = scripts[scripts.length - 1];
var temp = document.createElementNode('div');
temp.innerHTML = this.generateHTML();
current.parentNode.insertBefore(temp, current);
I wrote a script that hijacks document.write calls a little while back (https://github.com/joshduck/Injector.js) which lets you inject arbitrary HTML into your document and then execute inline scripts (including document.write) at a later time.What other existing frameworks would I use this instead of?
It would likely compete with things like Sencha Touch, jQuery Mobile, Jo, and other frameworks targeted at building mobile and hybrid applications.
Honestly, I'd wait until they have a UI framework and see if it compares to Bootstrap. The core certainly enables more organized, JS-focused code. Probably good for large web apps.
When are the UI widgets coming to Enyo 2?
It is the very next thing we are working on, and we hope to have it out in about a month. We’ll update you with regular builds as work progresses, now that Enyo is an open source project.
(I'm confused at the comments here lamenting the lack of a UI side of Enyo. I thought that UI elements were a decent part of Enyo?)
Enyo seems to be more declarative framework for defining your UI components.
In fact, you most probably could combine two together (esp. taking the 13KB weight in account, makes it a really-lightweight thingie).
https://market.android.com/details?id=net.ryanwatkins.app.pa...
Its written to the Enyo 1.0 framework that only really targeted the webOS implementation of webkit, so there are some performance issue with sliding and scrolling under Android that didnt appear on the TouchPad.
FYI, I'm the author (http://www.ryanwatkins.net/software/papermache/). Thanks for the plug!
Such a web based interactive was a big reason for why I found it so easy to get up and running with Mongo (http://try.mongodb.org/).