Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Directory in which the wiki pages live
- Giraffe.wikiroot = "/Users/ruerue/code/rubinius/master/doc"
- # Directory in which .git lives
- Giraffe.reporoot = "#{Giraffe.wikiroot}/.."
- # Append extension to *all* page name candidates
- Giraffe.to_filename = lambda {|uri| uri + ".txt" }
- Giraffe.to_uri = lambda {|file| file.chomp ".txt" }
- # No showing stuff other than .txt for now
- Giraffe.list_filter = lambda {|file| file =~ /\.txt$/ }
- # Resource files allowed
- RESOURCES = { "png" => {:mime => "image/png"}
- }
- Giraffe.resource_filter = lambda {|uri|
- uri.match /.+\.(.+)$/
- RESOURCES[$1]
- }
Add Comment
Please, Sign In to add comment