Sha256: 65b272dbf7079ac6bcd0a1c2565f4915e5c32153efd7df80b92937603e2c87aa
Contents?: true
Size: 500 Bytes
Versions: 40
Compression:
Stored size: 500 Bytes
Contents
require 'opal/sprockets' require 'sinatra' opal = Opal::Sprockets::Server.new {|s| s.append_path 'app' s.main = 'application' } sprockets = opal.sprockets prefix = '/assets' map prefix do run sprockets end get '/' do <<-HTML <!doctype html> <html> <head> <meta charset="utf-8"> #{::Opal::Sprockets.javascript_include_tag('application', sprockets: sprockets, prefix: prefix, debug: true)} </head> </html> HTML end run Sinatra::Application
Version data entries
40 entries across 40 versions & 1 rubygems