# = 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