Ahoy, Dojo, Apple iAds as well as Adobe Flex and a million others have created simple declarative APIs that you can use in your HTML. This lets you basically replace your app.js or page.js code and get rid of the massive domredy scripts you see people use all the time.
Instead there’s a single parser that runs on domready that looks for elements with special attributes and then instantiates all your classes for you based on the attributes declared in your HTML. The goal is to allow your JS-n00b co-workers to ‘code’ without screwing up your lovely JS and making massive rats nests that you’ll have to clean up later. There are other goals too ofcourse. So… What syntax do you guys like? If you have other suggestions please fork and add! https://gist.github.com/759332 — Thomas Aylott – SubtleGradient – MooTools – Cloudera —
