we need some way to keep this separate so that "rake" has a way of
knowing what to load (without loading the whole application)
there are other ways to solve this issue.. for instance the
merb_init.rb file could have some form of namespacing:
# dependacies are loaded first, you should
# place everything your application needs to
# run in this block
#
configure :dependancies do |config|
Gem.path.unshift(MERB_ROOT / "deps")
config.after_app_loads do
# something
end
end
# server options are set in this block
#
configure :server do |server|
server.host = '127.0.0.1'
server.port = 4000
end
# configure your session store here
#
configure :session do |session|
session.store = 'cookie'
end
# add additional mime types
#
configure :mime_types do |mime|
mime.type 'text', 'text/html'
end
looks pretty but might just be adding to much complexity.
Regards
Farms.
Design & Dev
Oxygen.
http://www.oxdi.eu
_______________________________________________
Merb-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/merb-devel