public
Description: A Ruby clone of web.py
Homepage: http://giftedslacker.com/projects/webrb/
Clone URL: git://github.com/gaustin/web-rb.git
gaustin (author)
Fri Nov 14 21:25:55 -0800 2008
commit  183f3a1bbf4de96c38593f2c5dd2483ef64da0cd
tree    b3fe2c01b34e17ecf83194eade925e8b5b3f1395
parent  04a968c6fdb4974b7b86c7065934b4db1145c469
web-rb /
name age message
file README.markdown Loading commit data...
directory lib/
README.markdown

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)