Sha256: 6423ec9c87fe2277571a8b6d40c4eba654bdb4f506516679f650c3ff35092d56

Contents?: true

Size: 1.44 KB

Versions: 6

Compression:

Stored size: 1.44 KB

Contents

# encoding: utf-8

# run very flat apps with merb -I <app file>.

# Uncomment for DataMapper ORM
# use_orm :datamapper

# Uncomment for ActiveRecord ORM
# use_orm :activerecord

# Uncomment for Sequel ORM
# use_orm :sequel


#
# ==== Pick what you test with
#

# This defines which test framework the generators will use.
# RSpec is turned on by default.
#
# To use Test::Unit, you need to install the merb_test_unit gem.
# To use RSpec, you don't have to install any additional gems, since
# merb-core provides support for RSpec.
#
# use_test :test_unit
use_test :rspec

#
# ==== Choose which template engine to use by default
#

# Merb can generate views for different template engines, choose your favourite as the default.

use_template_engine :erb
# use_template_engine :haml

Merb::Config.use { |c|
  c[:framework]           = { :public => [Merb.root / "public", nil] }
  c[:session_store]       = 'none'
  c[:exception_details]   = true
	c[:log_level]           = :debug # or error, warn, info or fatal
  c[:log_stream]          = STDOUT
  # or use file for loggine:
  # c[:log_file]          = Merb.root / "log" / "merb.log"

	c[:reload_classes]   = true
	c[:reload_templates] = true
}



Merb::Router.prepare do
  match('/').to(:controller => 'merb-very-flat', :action =>'index')
end

class MerbVeryFlat < Merb::Controller
  def index
    "Hi, I am 'very flat' Merb application. I have everything in one single file and well suited for dynamic stub pages."
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rango-0.2.3 benchmarks/stubs/merb-very-flat/merb-very-flat.rb
rango-0.2.1 benchmarks/stubs/merb-very-flat/merb-very-flat.rb
rango-0.2.1.pre benchmarks/stubs/merb-very-flat/merb-very-flat.rb
rango-0.0.6 benchmarks/stubs/merb-very-flat/merb-very-flat.rb
rango-0.1.pre benchmarks/stubs/merb-very-flat/merb-very-flat.rb
rango-0.0.4 benchmarks/stubs/merb-very-flat/merb-very-flat.rb