Wt::Ruby version 0.9.2 has been released!

* http://wiki.github.com/rdale/wtruby
  * Code
  * Wiki
  * Tutorial
    * http://wiki.github.com/rdale/wtruby/tutorial
* http://rubyforge.org/projects/wtruby/
 * Downloads
 * Help forum

Ruby bindings for the Wt web development toolkit, which
allow you to write widget based web applications wired up
with 'signals' and 'slots' in a very similar manner to a
desktop toolkit such as Qt. The Wt::Ruby bindings runtime is
derived from the well proven QtRuby code, and so it could be
described as a 'QtRuby for web programming'.

Hello World with quit button:

#!/usr/bin/env ruby
require 'wt'

class HelloApplication < Wt::WApplication
 def initialize(env)
   super(env)
   root.addWidget(Wt::WText.new("<h1>Hello, World!</h1>"))
   button = Wt::WPushButton.new("Quit", root)
   button.clicked.connect(SLOT(self, :quit))
 end
end

Wt::WRun(ARGV) do |env|
 HelloApplication.new(env)
end

Note that this forms a complete web server that can be run
from the command line as follows:


$ ./hello.rb --docroot . --http-address localhost
--http-port 3000

To deploy the same code via FCGI running under a web server
such as Apache, you just need to change the environment
variable WT_ENV from ‘development’ (or unset) to
‘production’.

Requirements
 * Ruby 1.8.x or 1.9.1
 * Wt 2.2.3 or Wt 2.99.0 or greater
 * cmake 2.6.x
 * boost 1.35 or greater

New in this release
 * Improved INSTALL instructions
 * Control&C now correctly stops the web server as per the C++ version
 * Added two classes 'Wt::ActiveTableModel' and 'Wt::ActiveItemModel'
to make it easy to use Rails ActiveRecord with the Wt mvc classes such
as WTreeView and Ext::TableView

------------------------------------------------------------------------------
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to