Sha256: 9ae4bc8e8c80a7dc48a136d3f86eeb602493b63d2699b2df8a55d93d082f9b79

Contents?: true

Size: 504 Bytes

Versions: 9

Compression:

Stored size: 504 Bytes

Contents

#	This file is part of the "Utopia Framework" project, and is licensed under the GNU AGPLv3.
#	Copyright 2010 Samuel Williams. All rights reserved.
#	See <utopia.rb> for licensing details.

require 'pathname'
require 'logger'

require 'utopia/extensions/rack'

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/path'
require 'utopia/tag'

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
utopia-0.9.40 lib/utopia/middleware.rb
utopia-0.9.39 lib/utopia/middleware.rb
utopia-0.9.38 lib/utopia/middleware.rb
utopia-0.9.37 lib/utopia/middleware.rb
utopia-0.9.36 lib/utopia/middleware.rb
utopia-0.9.35 lib/utopia/middleware.rb
utopia-0.9.34 lib/utopia/middleware.rb
utopia-0.9.33 lib/utopia/middleware.rb
utopia-0.9.32 lib/utopia/middleware.rb