Sha256: d867f60a88fff6b4c4e3cc0fd5e4a6c97684c5d33a0caa17f968e07d7900ed5b
Contents?: true
Size: 692 Bytes
Versions: 1
Compression:
Stored size: 692 Bytes
Contents
require 'nitro' require 'og' require 'blog' include Nitro Nitro.run do |conf| # Og.create_schema = false # Session.store_type = :drb Caching::Fragments.store = Caching::FileStore.new Localization.add( :en => 'conf/locales/en.yml', :de => 'conf/locales/de.yml' ) Og.setup( :store => 'psql', :name => 'blog', :user => 'postgres', :password => 'navelrulez' ) Rendering.shader = XSLTShader.new('src/xsl/style.xsl', LocalizationShader.new( RubyShader.new( CompressShader.new ) ) ) conf.dispatcher = Dispatcher.new( :root => BlogController, 'xml' => XmlController ) conf.set( :name => 'Nitro Blog', :host => '127.0.0.1', :port => 9999 ) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nitro-0.17.0 | examples/blog/run.rb |