Created
June 2, 2011 21:05
-
-
Save adamesque/1005334 to your computer and use it in GitHub Desktop.
Feature-incomplete Middleman/Rack::Rewrite demo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'rubygems' | |
| require 'rack-rewrite' | |
| require 'middleman' | |
| use Rack::Rewrite do | |
| rewrite %r{^/([^\./]+)/?$}, '/$1.html' | |
| end | |
| run Middleman::Server |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Rewrites
/download/to/download.html, etc.