- The caps are there to prevent global namespace collisions, since the chances of UPPERCASE global variables existing is smaller. I don't want to add lowercase names to the global, but they would be fine on the domo object itself, so maybe I should put both UPPER and lower there anyway.
- The CSS may be more verbose that LESS in JavaScript, but it compiles much faster and there's only 228 of code needed to get it. If you want sugar, just use CoffeeScript and it's probably even cleaner than LESS.
https://github.com/jed/domo/blob/master/docs/index.coffee#L1...
- The STYLE keyword is just there because that's where the "on" function lives. You could assign it to a local variable make the reference shorter.
- Yes, with bare JavaScript this is probably true, but the idea is to make sugar optional. Add your own and it looks like HAML:
https://github.com/jed/domo/blob/master/docs/index.coffee#L3...