Sha256: ac75b4eb5367bfd28245acbaa92788df3a822c2d1dc34b5e330747a4efa4a069

Contents?: true

Size: 329 Bytes

Versions: 8

Compression:

Stored size: 329 Bytes

Contents

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

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
rtfmd-0.10301.20 lib/gollum/frontend/indexapp.rb
rtfmd-0.10301.19 lib/gollum/frontend/indexapp.rb
rtfmd-0.10301.18 lib/gollum/frontend/indexapp.rb
rtfmd-0.10301.17 lib/gollum/frontend/indexapp.rb
RTFMd-0.10301.17 lib/gollum/frontend/indexapp.rb
RTFMd-0.10301.16 lib/gollum/frontend/indexapp.rb
RTFMd-0.10301.15 lib/gollum/frontend/indexapp.rb
RTFMd-0.10301.14 lib/gollum/frontend/indexapp.rb