Sha256: ca0df0150500d9fff7aad393af3c447ad0a95b80170bed8a6354da10da0621a7
Contents?: true
Size: 831 Bytes
Versions: 1
Compression:
Stored size: 831 Bytes
Contents
require 'sinatra' require 'redcloth' require 'logger' begin require 'rblosxom' rescue LoadError => e topdir = File.expand_path("../", File.dirname(__FILE__)) $LOAD_PATH.unshift(topdir) unless $LOAD_PATH.include?(topdir) require 'lib/rblosxom' end disable :run set :environment, :development $LOAD_PATH.unshift File.expand_path("../demo", File.dirname(__FILE__)) require 'main' Rblosxom::Main.log_level = Logger::DEBUG Rblosxom::Main.config_file = File.expand_path("main.yml", File.dirname(__FILE__)) map "/" do run Rblosxom::Main end require 'grid' map '/grid' do run Rblosxom::Grid end require 'wiki_render' Rblosxom::Wiki.root = File.expand_path("..", File.dirname(__FILE__)) Rblosxom::Wiki.config_file = File.expand_path("wiki.yml", File.dirname(__FILE__)) map '/wiki' do run Rblosxom::Wiki end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rblosxom-0.1.6 | config/rackup.ru |