rack_url_stripper
middleware to remove url’s, actions, and script from your markup
To use:
config.gem 'rack_url_stripper'
Set a path prefix to filter what gets stripped:
Rack::UrlStripper::Middleware.path_prefix = '/templates/'
Any path that starts with ‘/templates/’ will remove all links, action url’s, and script tags
Note on Patches/Pull Requests
-
Fork the project.
-
Make your feature addition or bug fix.
-
Add tests for it. This is important so I don’t break it in a future version unintentionally.
-
Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
-
Send me a pull request. Bonus points for topic branches.
Copyright
Copyright © 2010 Second Rotation, Inc. See LICENSE for details.