JML is as QT meets the HTML, CSS and DOM events, kind of AbsurdJS at the n
-th power of the absurd.
Body = function() {
html: 'body'
}
Nice ideas at Asana
defineType('World', {
messages: List/*<ChatMessage>*/
});
defineType('ChatMessage', {
user: User,
text: String
});
defineType('Session', {
user: User,
new_comment: String
});
function renderMessage(message) {
return DIV([
IMG({src: message.user().small_pic_url()}),
DIV({'class': 'bubble'}, [
B([message.user().name(), ': ']),
DIV([message.text()])
})
]);
}