Sha256: ae502e18eda3cb082106abc2c5baa95cdb412dac96dc9add271c3bb752fb375f

Contents?: true

Size: 505 Bytes

Versions: 16

Compression:

Stored size: 505 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).cleanpath.to_s
		end
	end
end

require 'utopia/path'
require 'utopia/tag'

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
utopia-0.9.57 lib/utopia/middleware.rb
utopia-0.9.56 lib/utopia/middleware.rb
utopia-0.9.55 lib/utopia/middleware.rb
utopia-0.9.54 lib/utopia/middleware.rb
utopia-0.9.53 lib/utopia/middleware.rb
utopia-0.9.52 lib/utopia/middleware.rb
utopia-0.9.51 lib/utopia/middleware.rb
utopia-0.9.50 lib/utopia/middleware.rb
utopia-0.9.49 lib/utopia/middleware.rb
utopia-0.9.48 lib/utopia/middleware.rb
utopia-0.9.47 lib/utopia/middleware.rb
utopia-0.9.46 lib/utopia/middleware.rb
utopia-0.9.45 lib/utopia/middleware.rb
utopia-0.9.43 lib/utopia/middleware.rb
utopia-0.9.42 lib/utopia/middleware.rb
utopia-0.9.41 lib/utopia/middleware.rb