gaustin / web-rb

A Ruby clone of web.py

Home Page:http://giftedslacker.com/projects/webrb/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#Web.rb: Web.py for Ruby

This is only a toy project at the moment. It's an exercise for me to learn more about Ruby.

#Example Program:

urls = { 
    '/', 'index',
    '/users', 'users',
}

class Index
    def get
        "<b>hello there, gentlemen!</b>"
    end
end

class Users
    def get
        "<b> you don't need this</b>"
    end
end

Web.start(urls)

About

A Ruby clone of web.py

http://giftedslacker.com/projects/webrb/


Languages

Language:Ruby 100.0%