winton/stasis — Issue #44: Request: running filters on files
Author: bomberstudios
Created: 2012-03-01 10:51:41+00:00
State: open

There's one thing I used quite a lot with nanoc, and think would make a killer addition to stasis: file filters.

The idea would work something like this:

````ruby
# controller.rb

before /*.png/ do
filter some_method
end

where some_method takes a file path as argument, transforms the file, and sends it back to stasis.

It would be great for image files (for running them through smusher, for example)