quick
Version:
QuickJS is a declarative language engine to run inside a browser. The node module contains the offline compiler.
41 lines (31 loc) • 857 B
HTML
<html>
<head>
<title> QuickJS </title>
<script type="text/javascript" src="../../quick.js"></script>
<script type="text/jml">
Item {
Item {
id: myItem
width: 100
height: 100
top: 0
backgroundColor: "red"
left: this.item.width + this.item.height
}
Item {
id: item
width: 100
height: 100
top: 0
left: 0
backgroundColor: "blue"
InputArea {
onactivated: alert("foo")
}
}
}
</script>
</head>
<body onload="console.time('run');Quick.run();console.timeEnd('run')" style="margin: 0">
</body>
</html>