Sha256: 60365b375e44dc0c096ce0c0e18789e45209966c24d09e398cf234a2ce7c2d76

Contents?: true

Size: 418 Bytes

Versions: 6

Compression:

Stored size: 418 Bytes

Contents

# encoding: utf-8

class MerbFlat < Merb::Controller

  def _template_location(action, type = nil, controller = controller_name)
    controller == "layout" ? "layout.#{action}.#{type}" : "#{action}.#{type}"
  end

  def index
    "Hello, I am flat Merb application. I only have one single file for the application, single file for configs and routes, and a directory for views."
  end

  def foo
    render
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

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