tdreyno/middleman — Issue #137: Mounted Rack middleware not working intuitively
Author: jeroenvandijk
Created: 2011-10-17 09:39:42+00:00
State: open

I'm using the Rack-Offline middleware to generate an app manifest for offline use the app I'm building. I got it working but I had to apply a hack (https://gist.github.com/1292282)

There are two issues, first I have to declare the path twice to be picked up:

map("/offline.appcache") { run offline }
page "/offline.appcache", :proxy => "offline.appcache"

The second issue is that I want to only build a selection of the files so I use the `--glob` option. This doesn't seem to work with the above hack so I can't use this option currently.

Am I doing it wrong or should I look into a patch?