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
- Host: GitHub
- URL: https://github.com/buzz/alreves
- Owner: buzz
- License: gpl-2.0
- Created: 2008-10-25T12:13:51.000Z (over 17 years ago)
- Default Branch: master
- Last Pushed: 2018-08-11T17:19:46.000Z (over 7 years ago)
- Last Synced: 2025-02-17T20:41:25.072Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 31.3 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
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.