Sha256: 3242327b9277e4619cdb674627947c887434626cc68670bfffaf75e62575e738

Contents?: true

Size: 1022 Bytes

Versions: 1

Compression:

Stored size: 1022 Bytes

Contents

# = Configuration
#
# === Design:
#
# Use a separate file for configuration, makes the
# main file more readable, and allows for reconfiguring
# (reload) the webapp without restarting the server.
#
# FIXME: redesign this!
#
# code: gmosx
#
# (c) 2004 Navel, all rights reserved.
# $Id: config.rb 90 2004-10-20 12:56:43Z gmosx $

require "n/std"
require "n/properties"
require "n/logger"
require "n/config"

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

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

$reload_scripts = $DBG

require "n/config"

require "tiny/conf/requires"

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

$appsrv_address = "127.0.0.1"
$appsrv_port = 9090
$srv_url = "http://127.0.0.1:8080"

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.1.2 examples/tiny/conf/config.rb