An open API service indexing awesome lists of open source software.

https://github.com/buzz/alreves

Alreves as a Rails plugin
https://github.com/buzz/alreves

Last synced: 10 months ago
JSON representation

Alreves as a Rails plugin

Awesome Lists containing this project

README

          

alreves 2008 by buzz

-- ALREVES

Alreves is an web application framework based on an unusual design
concept. It's still in early development.

And the idea behind it?

The short answer:
Alreves moves the application view entirely to the client's computer.

A bit longer answer:
While usual web application frameworks generate the HTML-code on the
server-side Alreves goes the other way around and processes templates
directly in the user's web browser.

-- FIRST STEPS

To create the famous 'Hello World' example using Alreves on Rails:

1. Create Rails project:

$ rails my_project

2. Engines is an extension to the Rails own plugin system that Alreves depends
on. So we install it first:

$ cd my_project
$ script/plugin discover
$ script/plugin install engines

Put this line in 'config/environment.rb' just below the
require for Rails’ own boot.rb file:

require File.join(File.dirname(__FILE__), '../vendor/plugins/engines/boot')

3. Install jRails plugin as Alreves uses jQuery and not Prototype.

$ script/plugin install http://ennerchi.googlecode.com/svn/trunk/plugins/jrails

4. Alreves comes as Rails plugin:

$ script/plugin install git://github.com/buzz/alreves.git

5. Alreves comes with some own special routes. Include the following line to your
'routes.rb':

map.from_plugin :alreves

6. Adjust 'app/controllers/application.rb':

Add to the top of the file:

require 'alreves_controller'

Change class definition:

class ApplicationController < AlrevesController

7. Create a minimal 'public/templates/border.tpl':

Hello World!

8. Delete 'public/index.html'

9. Run 'script/server' and fire up 'http://localhost:3000/'

-- LICENSE

Alreves is free software. It's released under the GPL v2. See file
LICENSE.