We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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:
# 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)
The text was updated successfully, but these errors were encountered:
It seems that instead should do exactly what you want:
instead
before /\.png$/ do instead MyFancyFilter.process(_stasis.path) end
Sorry, something went wrong.
No branches or pull requests
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:
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)
The text was updated successfully, but these errors were encountered: