jtrupiano / rack-rewrite

A web server agnostic rack middleware for defining and applying rewrite rules. In many cases you can get away with Rack::Rewrite instead of writing Apache mod_rewrite rules.
http://github.com/jtrupiano/rack-rewrite
MIT License
836 stars 80 forks source link

Added the ability to use external loaders #50

Closed danielcooper closed 11 years ago

danielcooper commented 11 years ago

Hi there,

So we were looking for a way to get rules loaded from our CMS into rack-rewrite. This patch allows the use of arbitrary rule set loaders if using the DSL isn't an option or if you want to load the rules from elsewhere.

I've also added a YAML rule set loader which might be useful since the redis one we're using would add gem dependencies.