require 'cgi' require 'sinatra' require 'gollum' require 'mustache/sinatra' require 'gollum/frontend/views/layout' module Precious class IndexApp < App get '/' do @roots = settings.roots.collect {|bp,ele| { :root => bp, :wiki => ele[:gollum_path] } } @base_path = "/" mustache :index end end end