Version 0.05 - First announcement
== About
Cuca is a light widget-based web application framework that supports
pretty
url’s, sessions, partials and layouts. It can interface with any
webserver
using cgi and fastcgi.
== Website
Homepage: http://cuca.rubyforge.org/
Project Page: http://rubyforge.org/projects/cuca
== Installation & Creating an application
gem install --remote cuca
cuca your_app
cd your_app
ruby ./scripts/server-webrick.rb
Open http://localhost:2000/
== Example
require ‘cuca/generator/markaby’
class HeadlineWidget < Cuca::Widget
include Cuca::Generator::Markaby
def output(&block)
mab do
div.headline { text capture(&block).upcase }
end
end
end
class IndexController < Cuca::Controller
include Cuca::Generator::Markaby
layout ‘default’
def run
mab do
Headline { b “Welcome” }
Headline { “test” }
end
end
end