Sha256: 41e141813bd21428152bf206d0f67d6d624dfee78ad18f8231f788b6a4c8e6b1
Contents?: true
Size: 1015 Bytes
Versions: 9
Compression:
Stored size: 1015 Bytes
Contents
# Copyright (c) 2010 Samuel Williams. Released under the GNU GPLv3. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. require 'pathname' require 'logger' module Utopia LOG = Logger.new($stderr) LOG.level = Logger::DEBUG module Middleware def self.default_root(subdir = "pages") Pathname.new(Dir.pwd).join(subdir).realpath.to_s end end end require 'utopia/extensions' require 'utopia/path' require 'utopia/tag'
Version data entries
9 entries across 9 versions & 1 rubygems