Sha256: 03f6f998d8a6657a5d71215ad7c6ced77dbd1b847472e7e7390c134294b04c51

Contents?: true

Size: 213 Bytes

Versions: 6

Compression:

Stored size: 213 Bytes

Contents

require 'kontrol'

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

run Templates.new

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
georgi-kontrol-0.1.1 examples/templates.ru
georgi-kontrol-0.1.2 examples/templates.ru
georgi-kontrol-0.1.3 examples/templates.ru
georgi-kontrol-0.1.4 examples/templates.ru
georgi-kontrol-0.1.5 examples/templates.ru
georgi-kontrol-0.1.6 examples/templates.ru