Ask HN: What's the best way to build Javascript widgets today? We're working on moving our site from a straight-up ROR app to hypermedia API on the back-end (still running on Rails) and Javascript/HTML5 on the front. I've used everything from raw Javascript to jQuery to Dojo to build client-side components against a REST API before, and I'm comfortable with going that direction, but I'm asking the community here if something has come along that supersedes these tools for this sort of application? In particular we want to develop a modular set of controls that can operate in a stand-alone fashion, composed only of client-side code but can also be combined and hosted in existing Rails-served pages as well as static HTML. Thoughts? |