We're happy to announce NinjaScript: a jQuery plugin for unobtrusive scripting.
- CSS-like language for web page behavior
- Define rich behaviors that include both event handlers and transformations.
- Durable behaviors that survive DOM alteration, with performance comparable to jQuery's live() method.
- Handy built-in behaviors for AJAX.
On the other hand, one hears a lot about "Unobtrusive Is Hard" and how a graceful degrade takes twice as long, etc etc. At the same time, software exists to encapsulate skills. Could be you'll be seeing a Rails plugin from LRD soon to convert the big Rails helpers into degrading versions.
What's it look like?
Here's a very simple example. Suppose you have an existing