Added Rules to process Glyph book.
h3rald h3rald@h3rald.com
Thu, 26 Aug 2010 10:15:57 +0200
1 files changed,
21 insertions(+),
5 deletions(-)
jump to
M
Rules
→
Rules
@@ -23,11 +23,19 @@ :line_numbers => true
} end +compile '/styles/*' do + # do nothing +end + compile "sitemap" do rep.filter :erb end compile /^\/(js\/.+?)/ do + # do nothing +end + +compile '/glyph/book/*' do # do nothing end@@ -94,15 +102,23 @@ item.identifier.gsub(/(.+)-(rss|atom)\/$/, '\1/\2') + '.xml'
end route '/(atom|rss)/' do - item.identifier.gsub(/\/$/, '') + '.xml' + item.identifier.chop + '.xml' end route '/css/*' do - item.identifier.gsub(/\/$/, '') + '.css' + item.identifier.chop + '.css' +end + +route '/styles/*' do + item.identifier.chop + '.css' +end + +route '/glyph/book/*' do + item.identifier.chop+'.html' end route '/sitemap' do - item.identifier.gsub(/\/$/, '') + '.xml' + item.identifier.chop + '.xml' end route "/htaccess" do@@ -110,11 +126,11 @@ "/.htaccess"
end route /\/(images|img|files|favicon|robots)\// do - item.identifier.gsub(/\/$/, '') + ".#{item[:extension]}" + item.identifier.chop + ".#{item[:extension]}" end route '/js/*' do - item.identifier.gsub(/\/$/, '') + '.js' + item.identifier.chop + '.js' end route '*' do