Mobl - A new open source language for mobile devices
mobl-lang.org
mobl-lang.org
[1] https://github.com/jashkenas/coffee-script/wiki/List-of-lang...
My complaint with it is that the documentation is sparse at this point. Whether because of that, or because of something else, the language feels claustrophobic to me, like I'm limited to the standard library.
For example, I'm not sure it's possible (or I never figured out how) to do things synchronously. Let's say you want to apply some jquery plugin to an object, but it must be done after the object exists; I'm not sure that's possible with mobl.
Not sure what you mean with your synchronous question and the "object that exists".
screen root() {
header("Title")
$("#div").someplugin();
}Can't do that. I tried to get around this by creating a control, but from what I can tell controls return html, not objects.
screen root() { mydiv@<div/> script { mydiv.someplugin(); } }
mydiv will be bound to a JQuery object representing the div. You can also just do this:
screen root() { script { $("#div").someplugin(); } }
So generally your answer is: put it in a script { ... } block.
I kind of choked when I read that. Why would you ever do such a thing?