These are chat archives for opal/opal
Uglifier::Error: Unexpected token punc «;», expected punc «,»
config.assets.js_compressor = Uglifier.new( :harmony => true )
NodeSetjust forwards to each element in the set
@mistergibson maybe take a look at the DOM and component parts of https://github.com/balmoral/robe. No docs, and not ready for public release, but it’s working well in a small production app.
The DOM stuff uses opal-browser under the hood, with it’s own straigtforward DSL, and data (state) driven removing/adding/updating of DOM elements using bindings to state.
There’s a couple of examples of the whole setup in https://github.com/balmoral/robe/tree/master/examples/apps.
The main interface to opal-browser is in https://github.com/balmoral/robe/blob/master/lib/robe/client/dom.rb. If nothing else it might show you how to get started with opal-browser.