Sha256: 7ddc6fc56a1e8d06e9efbab5640642999a549991c84c37805b2276de7c3f4e4d

Contents?: true

Size: 1016 Bytes

Versions: 1

Compression:

Stored size: 1016 Bytes

Contents

# = Configuration
#
# Use a separate file for configuration, makes the
# main file more readable, and allows for reconfiguring
# (reload) the webapp without restarting the server.
#
# code: 
# * George Moschovitis  <gm@navel.gr>
#
# (c) 2004 Navel, all rights reserved.
# $Id: config.rb 112 2004-10-27 10:59:55Z gmosx $

require "n/logger"
require "n/config"

$name = "Tiny"
$root_dir = "tiny/root"

# Main logger
$log = Logger.new(STDERR, 10); 

$reload_scripts = $DBG

require "n/std"
require "n/properties"
require "tiny/conf/requires"

$srv_extension_map = {
	"sx" => ["text/html",
		N::PageHandler.new
	],
	"si" => ["text/html",
		N::PageHandler.new
	],
	"rx" => ["text/html",
		N::CodeHandler.new
	]
}

$srv_address = $appsrv_address = "127.0.0.1"
$srv_port = $appsrv_port = 8080
$srv_url = "http://#$srv_address:#$srv_port"

module App

# Config
#
module Config

	def initialize_sitemap
	end
	
	def initialize_shaders
		$default_shader = N::NilShader.new
	end

	def initialize_events
	end	

end

end # module

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nitro-0.3.0 examples/tiny/conf/config.rb