Permalink
Browse files

Merge pull request #2 from wizardofzos/master

Very tiny change :)
  • Loading branch information...
tekanic committed Nov 27, 2011
2 parents ee13fc9 + b22b3a5 commit 3ba45119a9d8d4d79dc29873e7bc2ee89668b817
Showing with 9 additions and 3 deletions.
  1. +9 −3 Rules
View
12 Rules
@@ -34,12 +34,18 @@ route '/assets/less/*/' do
end
compile '*' do
- filter :erb
- layout 'default'
+ if not item.binary?
+ filter :erb
+ layout 'default'
+ end
end
route '*' do
- @item.identifier + 'index.html'
+ if item.binary?
+ item.identifier.chop + '.' + item[:extension]
+ else
+ @item.identifier + 'index.html'
+ end
end
layout '*', :erb

0 comments on commit 3ba4511

Please sign in to comment.