Permalink
Browse files

permalinks more working on heroku

  • Loading branch information...
1 parent 9ba8a03 commit 5db7c96fa2591adf79cb6883d60eaee50ca75977 Philip (flip) Kromer committed Sep 7, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 devblog.rb
View
@@ -14,5 +14,7 @@
end
get %r{^([^\.]+)/?$} do
- File.read('_site' + params[:captures].first + '/index.html')
+ slugged_filename = '_site' + params[:captures].first + '/index.html'
+ pass unless File.exists?(slugged_filename)
+ File.read(slugged_filename)
end

0 comments on commit 5db7c96

Please sign in to comment.