bivouac 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. data/README +18 -1
  2. data/bin/bivouac +10 -6
  3. data/lib/bivouac/commands/generate.rb +2 -0
  4. data/lib/bivouac/commands/plugin.rb +47 -0
  5. data/lib/bivouac/helpers/view/goh/html.rb +17 -0
  6. data/lib/bivouac/template/application/postamble.rb +26 -4
  7. data/lib/bivouac/template/application_goh.rb +2 -1
  8. data/{examples/blog_erb/script/generate → lib/bivouac/template/plugin.rb} +1 -1
  9. data/lib/bivouac/template/static/index.html +3 -2
  10. metadata +95 -172
  11. data/doc/rdoc/classes/BivouacHelpers/BaseView.html +0 -178
  12. data/doc/rdoc/classes/BivouacHelpers/FormView.html +0 -398
  13. data/doc/rdoc/classes/BivouacHelpers/HtmlView.html +0 -274
  14. data/doc/rdoc/classes/BivouacHelpers/JavaScriptView.html +0 -573
  15. data/doc/rdoc/classes/BivouacHelpers/ScriptAculoUsView.html +0 -258
  16. data/doc/rdoc/classes/BivouacHelpers/TooltipView.html +0 -158
  17. data/doc/rdoc/classes/BivouacHelpers.html +0 -117
  18. data/doc/rdoc/classes/JavaScriptGenerator.html +0 -564
  19. data/doc/rdoc/created.rid +0 -1
  20. data/doc/rdoc/files/AUTHORS.html +0 -109
  21. data/doc/rdoc/files/COPYING.html +0 -533
  22. data/doc/rdoc/files/README.html +0 -379
  23. data/doc/rdoc/files/lib/bivouac/helpers/view/goh/base_rb.html +0 -109
  24. data/doc/rdoc/files/lib/bivouac/helpers/view/goh/form_rb.html +0 -109
  25. data/doc/rdoc/files/lib/bivouac/helpers/view/goh/html_rb.html +0 -109
  26. data/doc/rdoc/files/lib/bivouac/helpers/view/goh/javascript_rb.html +0 -113
  27. data/doc/rdoc/files/lib/bivouac/helpers/view/goh/scriptaculous_rb.html +0 -113
  28. data/doc/rdoc/files/lib/bivouac/helpers/view/goh/tooltip_rb.html +0 -109
  29. data/doc/rdoc/index.html +0 -10
  30. data/doc/rdoc/permalink.gif +0 -0
  31. data/doc/rdoc/rdoc-style.css +0 -106
  32. data/doc/rdoc/rubyfr.png +0 -0
  33. data/examples/blog_erb/app/blog.rb +0 -84
  34. data/examples/blog_erb/app/controllers/add.rb +0 -19
  35. data/examples/blog_erb/app/controllers/comment.rb +0 -9
  36. data/examples/blog_erb/app/controllers/edit.rb +0 -18
  37. data/examples/blog_erb/app/controllers/index.rb +0 -8
  38. data/examples/blog_erb/app/controllers/info.rb +0 -11
  39. data/examples/blog_erb/app/controllers/login.rb +0 -15
  40. data/examples/blog_erb/app/controllers/logout.rb +0 -8
  41. data/examples/blog_erb/app/controllers/view.rb +0 -9
  42. data/examples/blog_erb/app/models/comment.rb +0 -5
  43. data/examples/blog_erb/app/models/post.rb +0 -5
  44. data/examples/blog_erb/app/models/user.rb +0 -4
  45. data/examples/blog_erb/app/views/add.html +0 -18
  46. data/examples/blog_erb/app/views/edit.html +0 -18
  47. data/examples/blog_erb/app/views/index.html +0 -12
  48. data/examples/blog_erb/app/views/layout.html +0 -12
  49. data/examples/blog_erb/app/views/login.html +0 -2
  50. data/examples/blog_erb/app/views/logout.html +0 -2
  51. data/examples/blog_erb/app/views/view.html +0 -20
  52. data/examples/blog_erb/config/environment.rb +0 -27
  53. data/examples/blog_erb/db/Blog.db +0 -0
  54. data/examples/blog_erb/db/create.rb +0 -8
  55. data/examples/blog_erb/db/migrate/comment.rb +0 -15
  56. data/examples/blog_erb/db/migrate/post.rb +0 -15
  57. data/examples/blog_erb/db/migrate/user.rb +0 -15
  58. data/examples/blog_erb/log/Blog.log +0 -57
  59. data/examples/blog_erb/public/images/camping.png +0 -0
  60. data/examples/blog_erb/public/index.html +0 -242
  61. data/examples/blog_erb/public/stylesheets/style.css +0 -10
  62. data/examples/blog_erb/script/server +0 -5
  63. data/lib/bivouac/commands/server.rb +0 -9
  64. data/lib/bivouac/template/application/helpers_erb.rb +0 -11
  65. data/lib/bivouac/template/application_erb.rb +0 -77
  66. data/lib/bivouac/template/application_jof.rb +0 -42
  67. data/lib/bivouac/template/generate/scaffold_view_create_erb.rb +0 -7
  68. data/lib/bivouac/template/generate/scaffold_view_list_erb.rb +0 -7
  69. data/lib/bivouac/template/generate/scaffold_view_view_erb.rb +0 -10
  70. data/lib/bivouac/template/generate/view_erb.rb +0 -2
@@ -1,9 +0,0 @@
1
- module Blog::Controllers
2
- class Comment
3
- def post
4
- Models::Comment.create(:username => input.post_username,
5
- :body => input.post_body, :post_id => input.post_id)
6
- redirect View, input.post_id
7
- end
8
- end
9
- end
@@ -1,18 +0,0 @@
1
- module Blog::Controllers
2
- class Edit < R '/edit/(\d+)', '/edit'
3
- def get post_id
4
- unless @state.user_id.blank?
5
- @user = User.find @state.user_id
6
- end
7
- @post = Post.find post_id
8
- render :edit, true
9
- end
10
- def post
11
- unless @state.user_id.blank?
12
- @post = Post.find input.post_id
13
- @post.update_attributes :title => input.post_title, :body => input.post_body
14
- redirect View, @post
15
- end
16
- end
17
- end
18
- end
@@ -1,8 +0,0 @@
1
- module Blog::Controllers
2
- class Index < R '/'
3
- def get
4
- @posts = Post.find :all
5
- render :index, true
6
- end
7
- end
8
- end
@@ -1,11 +0,0 @@
1
- module Blog::Controllers
2
- class Info < R '/info/(\d+)', '/info/(\w+)/(\d+)', '/info', '/info/(\d+)/(\d+)/(\d+)/([\w-]+)'
3
- def get(*args)
4
- div do
5
- code args.inspect; br; br
6
- code @env.inspect; br
7
- code "Link: #{R(Info, 1, 2)}"
8
- end
9
- end
10
- end
11
- end
@@ -1,15 +0,0 @@
1
- module Blog::Controllers
2
- class Login
3
- def post
4
- @user = User.find :first, :conditions => ['username = ? AND password = ?', input.username, input.password]
5
-
6
- if @user
7
- @login = 'login success !'
8
- @state.user_id = @user.id
9
- else
10
- @login = 'wrong user name or password'
11
- end
12
- render :login, true
13
- end
14
- end
15
- end
@@ -1,8 +0,0 @@
1
- module Blog::Controllers
2
- class Logout
3
- def get
4
- @state.user_id = nil
5
- render :logout, true
6
- end
7
- end
8
- end
@@ -1,9 +0,0 @@
1
- module Blog::Controllers
2
- class View < R '/view/(\d+)'
3
- def get post_id
4
- @post = Post.find post_id
5
- @comments = Models::Comment.find :all, :conditions => ['post_id = ?', post_id]
6
- render :view, true
7
- end
8
- end
9
- end
@@ -1,5 +0,0 @@
1
- module Blog::Models
2
- class Comment < Base
3
- belongs_to :post
4
- end
5
- end
@@ -1,5 +0,0 @@
1
- module Blog::Models
2
- class Post < Base
3
- belongs_to :user
4
- end
5
- end
@@ -1,4 +0,0 @@
1
- module Blog::Models
2
- class User < Base
3
- end
4
- end
@@ -1,18 +0,0 @@
1
- <% if @user %>
2
- <p>You are logged in as <%= @user.username %> | <a href="/logout">Logout</a></p>
3
- <form method="post" action="/add">
4
- Title : <br />
5
- <input name="post_title" type="text" value="<%= @post.title %>"><br />
6
- Body : <br />
7
- <textarea name="post_body"><%= @post.body %></textarea><br />
8
- <input type="hidden" name="post_id" value="<%= @post.id %>">
9
- <input type="submit">
10
- <% else %>
11
- <form action="/login" method="post">
12
- Username : <br />
13
- <input type="text" name="username" /><br />
14
- Password : <br />
15
- <input type="text" name="password" /><br />
16
- <input type="submit" name="login" value="Login">
17
- </form>
18
- <% end %>
@@ -1,18 +0,0 @@
1
- <% if @user %>
2
- <p>You are logged in as <%= @user.username %> | <a href="/logout">Logout</a></p>
3
- <form method="post" action="/edit">
4
- Title : <br />
5
- <input name="post_title" type="text" value="<%= @post.title %>"><br />
6
- Body : <br />
7
- <textarea name="post_body"><%= @post.body %></textarea><br />
8
- <input type="hidden" name="post_id" value="<%= @post.id %>">
9
- <input type="submit">
10
- <% else %>
11
- <form action="/login" method="post">
12
- Username : <br />
13
- <input type="text" name="username" /><br />
14
- Password : <br />
15
- <input type="text" name="password" /><br />
16
- <input type="submit" name="login" value="Login">
17
- </form>
18
- <% end %>
@@ -1,12 +0,0 @@
1
- <% if @posts.empty? %>
2
- <p>No posts found.</p>
3
- <p><a href="/add">Add</a></p>
4
- <% else %>
5
- <% for post in @posts %>
6
- <h1><%= post.title %></h1>
7
- <p><%= post.body %></p>
8
- <p>
9
- <a href="/edit/<%= post.id %>">Edit</a> | <a href="/view/<%= post.id %>">View</a>
10
- </p>
11
- <% end%>
12
- <% end %>
@@ -1,12 +0,0 @@
1
- <html>
2
- <head>
3
- <meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
4
- <title>blog</title>
5
- <link type="text/css" rel="stylesheet" href="/public/stylesheets/style.css" media="screen"/>
6
- </head>
7
- <body>
8
- <h1 class="header"><a href="/">blog</a></h1>
9
- <div class="content">
10
- <%= content %>
11
- </div>
12
- </body>
@@ -1,2 +0,0 @@
1
- <p><b><%= @login %></b></p>
2
- <p><a href="/add">Continue</a></p>
@@ -1,2 +0,0 @@
1
- <p>You have been logged out.</p>
2
- <p><a href="/">Continue</a></p>
@@ -1,20 +0,0 @@
1
- <h1><%= @post.title %></h1>
2
- <p><%= @post.body %></p>
3
- <p>
4
- <a href="/edit/<%= @post.id %>">Edit</a> | <a href="/view/<%= @post.id %>">View</a>
5
- </p>
6
-
7
- <p>Comment for this post:</p>
8
-
9
- <% for c in @comments %>
10
- <h1><%= c.username %></h1>
11
- <p><%= c.body %></p>
12
- <% end %>
13
-
14
- <form action="/comment" method="post">
15
- Name : <input name="post_username" type="text"><br />
16
- Comment :<br />
17
- <textarea name="post_body"></textarea><br />
18
- <input type="hidden" name="post_id" value="<%= @post.id %>">
19
- <input type="submit">
20
- </form>
@@ -1,27 +0,0 @@
1
- #
2
- # Project Blog
3
- #
4
- # Created using bivouac on Wed Aug 01 09:49:08 +0200 2007.
5
- # Copyright (c) 2007 __My__. All rights reserved.
6
- #
7
- # DO NOT EDIT THIS FILE, OR YOU REALLY KNOW WHAT YOU ARE DOING !
8
- #
9
-
10
- require 'ostruct'
11
-
12
- module Bivouac
13
- class Environment
14
-
15
- attr_reader :environment
16
-
17
- def initialize
18
- @environment = OpenStruct.new( )
19
-
20
- @environment.appname = "Blog"
21
- @environment.db = "sqlite3"
22
- @environment.appdir = "blog"
23
- @environment.orgtype = "erb"
24
- @environment.postamble = "webrick"
25
- end
26
- end
27
- end
Binary file
@@ -1,8 +0,0 @@
1
- module Blog
2
- include Camping::Session
3
- end
4
-
5
- def Blog.create
6
- Camping::Models::Session.create_schema
7
- Blog::Models.create_schema :assume => (Blog::Models::Comment.table_exists? ? 1.0 : 0.0)
8
- end
@@ -1,15 +0,0 @@
1
- module Blog::Models
2
- class CreateComment < V 1.0
3
- def self.up
4
- create_table :blog_comments do |t|
5
- t.column :id , :integer , :null => false
6
- t.column :post_id , :integer , :null => false
7
- t.column :username , :string
8
- t.column :body , :text
9
- end
10
- end
11
- def self.down
12
- drop_table :blog_comments
13
- end
14
- end
15
- end
@@ -1,15 +0,0 @@
1
- module Blog::Models
2
- class CreatePost < V 1.0
3
- def self.up
4
- create_table :blog_posts do |t|
5
- t.column :id , :integer , :null => false
6
- t.column :user_id , :integer , :null => false
7
- t.column :title , :string , :limit => 255
8
- t.column :body , :text
9
- end
10
- end
11
- def self.down
12
- drop_table :blog_posts
13
- end
14
- end
15
- end
@@ -1,15 +0,0 @@
1
- module Blog::Models
2
- class CreateUser < V 1.0
3
- def self.up
4
- create_table :blog_users do |t|
5
- t.column :id , :integer , :null => false
6
- t.column :username , :string
7
- t.column :password , :string
8
- end
9
- User.create :username => 'admin', :password => 'bivouac'
10
- end
11
- def self.down
12
- drop_table :blog_users
13
- end
14
- end
15
- end
@@ -1,57 +0,0 @@
1
- # Logfile created on Wed Aug 01 09:49:19 +0200 2007 by /
2
- SQL (0.000265) SELECT name FROM sqlite_master WHERE type = 'table'
3
- SQL (0.000000) SQLite3::SQLException: no such table: sessions: DROP TABLE sessions
4
- SQL (0.092496) CREATE TABLE sessions ("id" INTEGER PRIMARY KEY NOT NULL, "hashid" varchar(32) DEFAULT NULL, "created_at" datetime DEFAULT NULL, "ivars" text DEFAULT NULL) 
5
- SQL (0.000450) SELECT name FROM sqlite_master WHERE type = 'table'
6
- SQL (0.000275) SELECT name FROM sqlite_master WHERE type = 'table'
7
- SQL (0.133069) CREATE TABLE blog_schema_infos ("id" INTEGER PRIMARY KEY NOT NULL, "version" float DEFAULT NULL) 
8
- Blog::Models::SchemaInfo Load (0.000260) SELECT * FROM blog_schema_infos LIMIT 1
9
- SQL (0.243340) CREATE TABLE blog_comments ("id" INTEGER PRIMARY KEY NOT NULL, "post_id" integer NOT NULL, "username" varchar(255) DEFAULT NULL, "body" text DEFAULT NULL) 
10
- SQL (0.068921) CREATE TABLE blog_posts ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer NOT NULL, "title" varchar(255) DEFAULT NULL, "body" text DEFAULT NULL) 
11
- SQL (0.067700) CREATE TABLE blog_users ("id" INTEGER PRIMARY KEY NOT NULL, "username" varchar(255) DEFAULT NULL, "password" varchar(255) DEFAULT NULL) 
12
- SQL (0.000618) INSERT INTO blog_users ("username", "password") VALUES('admin', 'bivouac')
13
- SQL (0.000532) INSERT INTO blog_schema_infos ("version") VALUES(1.0)
14
- Camping::Models::Session Load (0.000319) SELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1
15
- SQL (0.000543) INSERT INTO sessions ("hashid", "created_at", "ivars") VALUES('TZLL5FG1tzSuDkuxtYL3L0x4kvUzcEIG', '2007-08-01 09:52:28', '--- !map:HashWithIndifferentAccess {}
16
-
17
- ')
18
- Blog::Models::Post Load (0.000306) SELECT * FROM blog_posts 
19
- Camping::Models::Session Load (0.000577) SELECT * FROM sessions WHERE (sessions."hashid" = 'TZLL5FG1tzSuDkuxtYL3L0x4kvUzcEIG') LIMIT 1
20
- Camping::Models::Session Load (0.000534) SELECT * FROM sessions WHERE (sessions."hashid" = 'TZLL5FG1tzSuDkuxtYL3L0x4kvUzcEIG') LIMIT 1
21
- Blog::Models::User Load (0.000382) SELECT * FROM blog_users WHERE (username = 'admin' AND password = 'bivouac') LIMIT 1
22
- Camping::Models::Session Update (0.001286) UPDATE sessions SET "created_at" = '2007-08-01 09:52:28', "hashid" = 'TZLL5FG1tzSuDkuxtYL3L0x4kvUzcEIG', "ivars" = '--- !map:HashWithIndifferentAccess
23
- Blog: !map:HashWithIndifferentAccess
24
- user_id: 1
25
- ' WHERE "id" = 1
26
- Camping::Models::Session Load (0.000677) SELECT * FROM sessions WHERE (sessions."hashid" = 'TZLL5FG1tzSuDkuxtYL3L0x4kvUzcEIG') LIMIT 1
27
- Blog::Models::User Load (0.000486) SELECT * FROM blog_users WHERE (blog_users."id" = 1) 
28
- Camping::Models::Session Load (0.000516) SELECT * FROM sessions WHERE (sessions."hashid" = 'TZLL5FG1tzSuDkuxtYL3L0x4kvUzcEIG') LIMIT 1
29
- SQL (0.000519) INSERT INTO blog_posts ("body", "title", "user_id") VALUES('P11', '11', 1)
30
- Camping::Models::Session Load (0.000606) SELECT * FROM sessions WHERE (sessions."hashid" = 'TZLL5FG1tzSuDkuxtYL3L0x4kvUzcEIG') LIMIT 1
31
- Blog::Models::Post Load (0.000389) SELECT * FROM blog_posts WHERE (blog_posts."id" = 1) 
32
- Blog::Models::Comment Load (0.000365) SELECT * FROM blog_comments WHERE (post_id = '1') 
33
- Camping::Models::Session Load (0.000516) SELECT * FROM sessions WHERE (sessions."hashid" = 'TZLL5FG1tzSuDkuxtYL3L0x4kvUzcEIG') LIMIT 1
34
- SQL (0.000521) INSERT INTO blog_comments ("body", "post_id", "username") VALUES('HW', 1, 'g')
35
- Camping::Models::Session Load (0.000570) SELECT * FROM sessions WHERE (sessions."hashid" = 'TZLL5FG1tzSuDkuxtYL3L0x4kvUzcEIG') LIMIT 1
36
- Blog::Models::Post Load (0.000392) SELECT * FROM blog_posts WHERE (blog_posts."id" = 1) 
37
- Blog::Models::Comment Load (0.000354) SELECT * FROM blog_comments WHERE (post_id = '1') 
38
- Camping::Models::Session Load (0.000454) SELECT * FROM sessions WHERE (sessions."hashid" = 'TZLL5FG1tzSuDkuxtYL3L0x4kvUzcEIG') LIMIT 1
39
- Blog::Models::User Load (0.000313) SELECT * FROM blog_users WHERE (blog_users."id" = 1) 
40
- Blog::Models::Post Load (0.000266) SELECT * FROM blog_posts WHERE (blog_posts."id" = 1) 
41
- Camping::Models::Session Load (0.000486) SELECT * FROM sessions WHERE (sessions."hashid" = 'TZLL5FG1tzSuDkuxtYL3L0x4kvUzcEIG') LIMIT 1
42
- Blog::Models::Post Load (0.000366) SELECT * FROM blog_posts WHERE (blog_posts."id" = 1) 
43
- Blog::Models::Post Update (0.001053) UPDATE blog_posts SET "title" = '112', "body" = 'P112', "user_id" = 1 WHERE "id" = 1
44
- Camping::Models::Session Load (0.000554) SELECT * FROM sessions WHERE (sessions."hashid" = 'TZLL5FG1tzSuDkuxtYL3L0x4kvUzcEIG') LIMIT 1
45
- Blog::Models::Post Load (0.000433) SELECT * FROM blog_posts WHERE (blog_posts."id" = 1) 
46
- Blog::Models::Comment Load (0.000356) SELECT * FROM blog_comments WHERE (post_id = '1') 
47
- Camping::Models::Session Load (0.000550) SELECT * FROM sessions WHERE (sessions."hashid" = 'TZLL5FG1tzSuDkuxtYL3L0x4kvUzcEIG') LIMIT 1
48
- Blog::Models::Post Load (0.000414) SELECT * FROM blog_posts 
49
- Camping::Models::Session Load (0.000543) SELECT * FROM sessions WHERE (sessions."hashid" = 'TZLL5FG1tzSuDkuxtYL3L0x4kvUzcEIG') LIMIT 1
50
- Blog::Models::User Load (0.000403) SELECT * FROM blog_users WHERE (blog_users."id" = 1) 
51
- Camping::Models::Session Load (0.000501) SELECT * FROM sessions WHERE (sessions."hashid" = 'TZLL5FG1tzSuDkuxtYL3L0x4kvUzcEIG') LIMIT 1
52
- SQL (0.000908) INSERT INTO blog_posts ("body", "title", "user_id") VALUES('33333333', '333', 1)
53
- Camping::Models::Session Load (0.000511) SELECT * FROM sessions WHERE (sessions."hashid" = 'TZLL5FG1tzSuDkuxtYL3L0x4kvUzcEIG') LIMIT 1
54
- Blog::Models::Post Load (0.000356) SELECT * FROM blog_posts WHERE (blog_posts."id" = 2) 
55
- Blog::Models::Comment Load (0.000185) SELECT * FROM blog_comments WHERE (post_id = '2') 
56
- Camping::Models::Session Load (0.000488) SELECT * FROM sessions WHERE (sessions."hashid" = 'TZLL5FG1tzSuDkuxtYL3L0x4kvUzcEIG') LIMIT 1
57
- Blog::Models::Post Load (0.000427) SELECT * FROM blog_posts 
@@ -1,242 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html>
4
- <head>
5
- <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
6
- <title>Bivouac: Welcome aboard</title>
7
- <style type="text/css" media="screen">
8
- body {
9
- margin: 0;
10
- margin-bottom: 25px;
11
- padding: 0;
12
- background-color: #f0f0f0;
13
- font-family: "Lucida Grande", "Bitstream Vera Sans", "Verdana";
14
- font-size: 13px;
15
- color: #333;
16
- }
17
-
18
- h1 {
19
- font-size: 28px;
20
- color: #000;
21
- }
22
-
23
- a {color: #03c}
24
- a:hover {
25
- background-color: #03c;
26
- color: white;
27
- text-decoration: none;
28
- }
29
-
30
-
31
- #page {
32
- background-color: #f0f0f0;
33
- width: 750px;
34
- margin: 0;
35
- margin-left: auto;
36
- margin-right: auto;
37
- }
38
-
39
- #content {
40
- float: left;
41
- background-color: white;
42
- border: 3px solid #aaa;
43
- border-top: none;
44
- padding: 25px;
45
- width: 500px;
46
- }
47
-
48
- #sidebar {
49
- float: right;
50
- width: 175px;
51
- }
52
-
53
- #footer {
54
- clear: both;
55
- }
56
-
57
-
58
- #header, #about, #getting-started {
59
- padding-left: 75px;
60
- padding-right: 30px;
61
- }
62
-
63
-
64
- #header {
65
- background-image: url("images/camping.png");
66
- background-repeat: no-repeat;
67
- background-position: top right;
68
- height: 100px;
69
- }
70
- #header h1, #header h2 {margin: 0}
71
- #header h2 {
72
- color: #888;
73
- font-weight: normal;
74
- font-size: 16px;
75
- }
76
-
77
-
78
- #about h3 {
79
- margin: 0;
80
- margin-bottom: 10px;
81
- font-size: 14px;
82
- }
83
-
84
- #about-content {
85
- background-color: #ffd;
86
- border: 1px solid #fc0;
87
- margin-left: -11px;
88
- }
89
- #about-content table {
90
- margin-top: 10px;
91
- margin-bottom: 10px;
92
- font-size: 11px;
93
- border-collapse: collapse;
94
- }
95
- #about-content td {
96
- padding: 10px;
97
- padding-top: 3px;
98
- padding-bottom: 3px;
99
- }
100
- #about-content td.name {color: #555}
101
- #about-content td.value {color: #000}
102
-
103
- #about-content.failure {
104
- background-color: #fcc;
105
- border: 1px solid #f00;
106
- }
107
- #about-content.failure p {
108
- margin: 0;
109
- padding: 10px;
110
- }
111
-
112
-
113
- #getting-started {
114
- border-top: 1px solid #ccc;
115
- margin-top: 25px;
116
- padding-top: 15px;
117
- }
118
- #getting-started h1 {
119
- margin: 0;
120
- font-size: 20px;
121
- }
122
- #getting-started h2 {
123
- margin: 0;
124
- font-size: 14px;
125
- font-weight: normal;
126
- color: #333;
127
- margin-bottom: 25px;
128
- }
129
- #getting-started ol {
130
- margin-left: 0;
131
- padding-left: 0;
132
- }
133
- #getting-started li {
134
- font-size: 18px;
135
- color: #888;
136
- margin-bottom: 25px;
137
- }
138
- #getting-started li h2 {
139
- margin: 0;
140
- font-weight: normal;
141
- font-size: 18px;
142
- color: #333;
143
- }
144
- #getting-started li p {
145
- color: #555;
146
- font-size: 13px;
147
- }
148
-
149
-
150
- #search {
151
- margin: 0;
152
- padding-top: 10px;
153
- padding-bottom: 10px;
154
- font-size: 11px;
155
- }
156
- #search input {
157
- font-size: 11px;
158
- margin: 2px;
159
- }
160
- #search-text {width: 170px}
161
-
162
-
163
- #sidebar ul {
164
- margin-left: 0;
165
- padding-left: 0;
166
- }
167
- #sidebar ul h3 {
168
- margin-top: 25px;
169
- font-size: 16px;
170
- padding-bottom: 10px;
171
- border-bottom: 1px solid #ccc;
172
- }
173
- #sidebar li {
174
- list-style-type: none;
175
- }
176
- #sidebar ul.links li {
177
- margin-bottom: 5px;
178
- }
179
-
180
- </style>
181
- </head>
182
- <body>
183
- <div id="page">
184
- <div id="sidebar">
185
- <ul id="sidebar-items">
186
- <li>
187
- <form id="search" action="http://www.google.com/search" method="get">
188
- <input type="hidden" name="hl" value="en" />
189
- <input type="text" id="search-text" name="q" value="site:code.whytheluckystiff.net/camping " />
190
- <input type="submit" value="Search" /> the Camping site
191
- </form>
192
- </li>
193
-
194
- <li>
195
- <h3>Join the community</h3>
196
- <ul class="links">
197
- <li><a href="http://redhanded.hobix.com/bits/campingAMicroframework.html">Camping</a></li>
198
- <li><a href="http://code.whytheluckystiff.net/camping">Wiki</a></li>
199
- <li><a href="http://code.whytheluckystiff.net/camping/browser/">Code</a></li>
200
- <li><a href="http://code.whytheluckystiff.net/camping/report/1">Bug tracker</a></li>
201
- </ul>
202
- </li>
203
-
204
- <li>
205
- <h3>Browse the documentation</h3>
206
- <ul class="links">
207
- <li><a href="http://camping.rubyforge.org/files/README.html">Camping API</a></li>
208
- <li><a href="http://stdlib.rubyonrails.org/">Ruby standard library</a></li>
209
- <li><a href="http://corelib.rubyonrails.org/">Ruby core</a></li>
210
- </ul>
211
- </li>
212
- </ul>
213
- </div>
214
-
215
- <div id="content">
216
- <div id="header">
217
- <h1>Welcome aboard</h1>
218
- <h2>You can now go in the tent!</h2>
219
- </div>
220
-
221
- <div id="getting-started">
222
- <h1>Getting started</h1>
223
- <h2>Here&rsquo;s how to get rolling:</h2>
224
-
225
- <ol>
226
- <li>
227
- <h2>Use <tt>script/generate</tt> to create your models and controllers</h2>
228
- <p>To see all available options, run it without parameters.</p>
229
- </li>
230
-
231
- <li>
232
- <h2>That's all folks...</h2>
233
- <p>...time for barbecue!</p>
234
- </li>
235
- </ol>
236
- </div>
237
- </div>
238
-
239
- <div id="footer">&nbsp;</div>
240
- </div>
241
- </body>
242
- </html>
@@ -1,10 +0,0 @@
1
- body {
2
- font-family: Utopia, Georga, serif;
3
- }
4
- h1.header {
5
- background-color: #fef;
6
- margin: 0; padding: 10px;
7
- }
8
- div.content {
9
- padding: 10px;
10
- }
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require 'rubygems'
3
- app = File.dirname(__FILE__) + "/../app/blog.rb"
4
-
5
- system "ruby #{app}"
@@ -1,9 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # bivouac - 0.0.1
3
- # (c)2007 Grégoire Lejeune
4
-
5
- require 'rubygems'
6
- require File.dirname(__FILE__) + '/../config/environment.rb'
7
-
8
- puts "Bivouac Generator !"
9
- puts ARGV
@@ -1,11 +0,0 @@
1
- #
2
- # Project <%= @appname %>
3
- #
4
- # Created using bivouac on <%= Time.now %>.
5
- # Copyright (c) <%= Time.now.year %> __My__. All rights reserved.
6
- #
7
- # DO NOT EDIT THIS FILE OR YOU REALLY KNOW WHAT YOU ARE DOING
8
- # USE script/generate helper my_helper
9
- #
10
-
11
- # TODO