-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
52 lines (41 loc) · 1.43 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Appetizr (aka indigo) - (rapid) application framework inspired by RoR and Shoes
Appetizr uses ...
... a DSL to create/format view similar to the DSL of shoes ( http://shoesrb.com/ ).
... active_support for nice ruby extensions and I18n
... active_record/resource for db and webservice access
... gtk2 for the underlying widget rendering
... rubigen to create app templaes
... some other extensions (dbus) and ideas from RoR
currently used in
http://github.com/Sebu/appetizrTest (simple text example)
http://github.com/Sebu/frontDesk (clone of a simple administrative tool)
Differences to Rails
1. Appetizr is not RAILS
2. Appetizr uses multiple databases by default so
schema.rb is db/schemas/db_name.rb
migrations is db/migration/db_name/[0-9]*_*.rb
3. explicit rather then implicit render
4. controller generates gui directly
5. besides indirect/dispatched action calls, direct action calls are also possible
6. more
How it should work(but does not right now):
appetize my_app
cd my_app
script/generate window/model/controller .. create models and views
bin/start ... test
rake appetize (-> create app + installer)
USAGE OF DEMO APP/FRAMEWORK
* 'rake db:migrate'
* 'bin/start'
Simple Controller
class SimpleController < Indigo::Controller
def show
render do
window {
@text = label "Hallo Wald!"
button(:ok).click { @text.text= "Hallo Wurst!" }
end
}
end.show_all
end
end