Sha256: e7d7767469ef38a4a9f7d616139735f2d74fba7dfa04ac7ab7669cd3cc15fc8c
Contents?: true
Size: 790 Bytes
Versions: 3
Compression:
Stored size: 790 Bytes
Contents
# encoding: utf-8 # http://wiki.github.com/botanicus/rango/routers Rango::Router.use(:<%= @router.to_sym %>) <% case @router %> <% when "usher" %> # http://github.com/joshbuddy/usher Rango::Router.app = Usher::Interface.for(:rack) do get("/").to(<%= @name.camel_case %>::ShowCase.dispatcher(:index)).name(:showcase) end <% when "rack-mount" %> # http://github.com/josh/rack-mount Rango::Router.app = Rack::Mount::RouteSet.new do |set| # add_route takes a rack application and conditions to match with # conditions may be strings or regexps # See Rack::Mount::RouteSet#add_route for more options. set.add_route <%= @name.camel_case %>::ShowCase.dispatcher(:index), method: "get", path: "/" end <% when "rack-router" %> # TODO: routes <% when "urlmap" %> # TODO: routes <% end %>
Version data entries
3 entries across 3 versions & 1 rubygems