Sha256: fc09779e7fbf3d02ee0446a5826b1ac6eaa406f6884c3689b5b8d7961df7c69e

Contents?: true

Size: 214 Bytes

Versions: 7

Compression:

Stored size: 214 Bytes

Contents

require 'kontrol'

class Templates < Kontrol::Application
  map do
    page '/(.*)' do |name|
      render "page.rhtml", :title => name.capitalize, :body => "This is the body!"
    end
  end
end

run Templates.new

Version data entries

7 entries across 7 versions & 2 rubygems

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