[ANN] Cuca Web Framework - v0.05

M

Martin Boese

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,268
Latest member
AshliMacin

Latest Threads

Top