Sha256: a07ee5e72ddecaa80fca9934b370b5e5dda28d0ea8fb2eab27153c4309f9b0c9
Contents?: true
Size: 956 Bytes
Versions: 2
Compression:
Stored size: 956 Bytes
Contents
# This module defines the SproutCore support for Merb applications. To host a SproutCore # app in your Merb application, simply add the following line to your router: # # Merb::Router.prepare do |r| # r.connect_clients('/', LIBRARY_ROOT) # end # # The first parameter you pass is the URL you want SproutCore apps to be served from. Anything # URL beginning with this root will be automatically directed to the SproutCore build tools. # # The second parameter is an optional root path to the Library that you want hosted at that # location. If you do not pass this parameter then Merb.root will be used (which is what you # usually want anyway.) # # Load Merb if it is available begin gem('merb-core', '>= 0.9.1') Dir.glob(File.join(File.dirname(__FILE__),'merb','**','*.rb')).each { |x| require(x) } rescue LoadError puts "WARNING: sproutcore/merb requires Merb 0.9.1 or later. Earlier releases are not supported. Module was not loaded." end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sproutcore-0.9.18 | lib/sproutcore/merb.rb |
sproutcore-0.9.19 | lib/sproutcore/merb.rb |