stubs/project/content/config.ru.rbt in rango-0.1.0 vs stubs/project/content/config.ru.rbt in rango-0.1.1
- old
+ new
@@ -1,8 +1,10 @@
<%= shebang "./init.rb", %w[-p 4000 -s webrick] %>
# encoding: utf-8
+require "rango/rack/middlewares/basic"
+
# Load init.rb even if config.ru is just loaded
# This comes handy in Passenger etc, but it's still
# useful to have config.ru as an executable, because
# it's easy to have default arguments for bin/rackup
require_relative "init.rb" unless $0.eql?(__FILE__)
@@ -34,9 +36,10 @@
User.new # TODO
end
end
<% end %>
+# http://wiki.github.com/botanicus/rango/routers
Rango::Router.use(:<%= @router.to_sym %>)
<% case @router %>
<% when "usher" %>
# http://github.com/joshbuddy/usher