Sha256: b0547246204ba01f1534430f0e8b0cca99dfa14f9c354061ba6b9b6050d0f1a4
Contents?: true
Size: 956 Bytes
Versions: 4
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.9') Dir.glob(File.join(File.dirname(__FILE__),'merb','**','*.rb')).each { |x| require(x) } rescue LoadError puts "WARNING: sproutcore/merb requires Merb 0.9.9 or later. Earlier releases are not supported. Module was not loaded." end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
sproutcore-0.9.22 | lib/sproutcore/merb.rb |
sproutcore-0.9.20 | lib/sproutcore/merb.rb |
sproutcore-0.9.21 | lib/sproutcore/merb.rb |
sproutcore-0.9.23 | lib/sproutcore/merb.rb |