jacquescrocker / jammit-sinatra

Jammit Rack middleware for use with Sinatra/Padrino
MIT License
23 stars 13 forks source link

Use precached assets if available... #2

Open argent-smith opened 12 years ago

argent-smith commented 12 years ago

... in non-development environment.

In any non-dev (i.e. :development) environment this code checks whether a precached asset file is available and serves it instead of recompiling the asset every time.

argent-smith commented 12 years ago

BTW it looks like without this patch jammit-sinatra won't work on Heroku: it'll try to check'n'recompile the assets on Heroku's RO FS.

alan-andrade commented 11 years ago

@argent-smith How did you solve the Heroku problem? And, THANKS for the patch, I was debugging why Jammit was compiling everyime!