Sha256: 6d969047d54d1593f034ffe97e5a2609096c608c49113bea8105b98f49d470b1

Contents?: true

Size: 221 Bytes

Versions: 7

Compression:

Stored size: 221 Bytes

Contents

require 'kontrol'

class HelloWorld < Kontrol::Application
  
  def time
    Time.now.strftime "%H:%M:%S"
  end

  map do
    root '/' do
      text "<h1>Hello World at #{time}</h1>"
    end
  end
end

run HelloWorld.new

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
georgi-kontrol-0.2 examples/hello_world.ru
georgi-kontrol-0.3 examples/hello_world.ru
kontrol-0.4 examples/hello_world.ru
kontrol-0.3.3 examples/hello_world.ru
kontrol-0.3.2 examples/hello_world.ru
kontrol-0.3.1 examples/hello_world.ru
kontrol-0.3 examples/hello_world.ru