Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Middleware routing anti-pattern
- use Jim::Rack, :bundled_uri => '/javascripts/bundled-live.js',
- :compressed_uri => '/javascripts/compressed-live.js'
- use Rack::Coffee, {
- :urls => '/javascipts'
- }
- use Sass::Plugin::Rack, :css_location => '/stylesheets'
- use Rack::Sparklines, :prefix => '/sparks'
- # Use Rack's URLMap or another router of your choice
- map "/javascripts/bundle.js" do
- run Jim::Rack.new
- end
- map "/javascripts/coffee.js" do
- run Rack::Coffee.new
- end
Add Comment
Please, Sign In to add comment