Here's one useful snippet:
def (Before=).new(a,*o)Rack::Cascade.new(oa)end
This means that this app:
module App
use Before, Rack::File.new('public')
end
Will pass all requests through Rack::File.new('public') first, and
only proceed to App if that returns 404. This can be very useful
I think that's immensely useful. It'll allow me to keep JS/CSS/HTML
separate from the app files but still packaged with the app.
Dave
On Fri, Dec 16, 2011 at 3:13 PM, Magnus Holm judo...@gmail.com wrote:
Here's one useful snippet:
def (Before=).new(a,*o)Rack::Cascade.new(oa)end
This means
2 matches
Mail list logo