Skip to content

Instantly share code, notes, and snippets.

@kisoku
Created August 24, 2009 06:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kisoku/173696 to your computer and use it in GitHub Desktop.
Save kisoku/173696 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
compile '/*' do
filter :haml
layout 'default'
end
compile '/feed/' do
filter :erb
end
route '/feed/' do
'/feed/atom.xml'
end
route '/' do
item.identifier + "index.html"
end
route '/*' do
item.identifier.chop + '.html'
end
layout '*', :haml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment