# * George Moschovitis # (c) 2004-2005 Navel, all rights reserved. # $Id$ $:.unshift File.join(File.dirname(__FILE__), '..', 'lib') $:.unshift File.join(File.dirname(__FILE__), '..', '..', '..', 'lib') $DBG = true require 'nitro' require 'glue/validation' require 'og' require 'blog' include N og = Og::Database.new( :address => 'localhost', # :backend => 'mysql', :backend => 'psql', :database => 'blog', :user => 'postgres', :password => 'navelrulez', :connection_count => 3 ) controllers = { :index => BlogController } apis = { :xml => 'text/xml' } dispatcher = Dispatcher.new(controllers, apis) Rendering.shader = N::XSLTShader.new("#{dispatcher.root}/style.xsl", N::RubyShader.new( N::CompressShader.new ) ) Rendering.reload = :partial $conf = { :name => 'Nitro Blog', :host => 'localhost', :port => 8069, :dispatcher => dispatcher, :og => og }