Skip to content

Request: running filters on files #44

@bomberstudios

Description

@bomberstudios

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions