bivouac 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,109 +0,0 @@
1
-
2
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
3
- <html>
4
- <head>
5
- <title>
6
- Bivouac, the Documentation &raquo; File: html.rb
7
- </title>
8
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
9
- <link rel="stylesheet" href="../../../../../.././rdoc-style.css" type="text/css" media="screen" />
10
- <script language="JavaScript" type="text/javascript">
11
- // <![CDATA[
12
-
13
- function toggleSource( id )
14
- {
15
- var elem
16
- var link
17
-
18
- if( document.getElementById )
19
- {
20
- elem = document.getElementById( id )
21
- link = document.getElementById( "l_" + id )
22
- }
23
- else if ( document.all )
24
- {
25
- elem = eval( "document.all." + id )
26
- link = eval( "document.all.l_" + id )
27
- }
28
- else
29
- return false;
30
-
31
- if( elem.style.display == "block" )
32
- {
33
- elem.style.display = "none"
34
- link.innerHTML = "show source"
35
- }
36
- else
37
- {
38
- elem.style.display = "block"
39
- link.innerHTML = "hide source"
40
- }
41
- }
42
-
43
- function openCode( url )
44
- {
45
- window.open( url, "SOURCE_CODE", "width=400,height=400,scrollbars=yes" )
46
- }
47
- // ]]>
48
- </script>
49
- </head>
50
- <body>
51
- <!--
52
- <div id="menu">
53
- <h3 class="title">File: html.rb</h3>
54
- </div>
55
- -->
56
- <div id="fullpage">
57
- <div id="pager">
58
- <table>
59
- <tr><td><img src="../../../../../../rubyfr.png" /></td>
60
- <td id="pagertd">
61
- <strong># File: html.rb<br />
62
- [
63
- "<a href="../../../../../../files/README.html" value="File: README">README</a>",
64
- "<a href="../../../../../../files/AUTHORS.html" value="File: AUTHORS">AUTHORS</a>",
65
- "<a href="../../../../../../files/COPYING.html" value="File: COPYING">COPYING</a>",
66
- "<a href="../../../../../../files/lib/bivouac/helpers/view/goh/base_rb.html" value="File: base.rb">lib/bivouac/helpers/view/goh/base.rb</a>",
67
- "<a href="../../../../../../files/lib/bivouac/helpers/view/goh/form_rb.html" value="File: form.rb">lib/bivouac/helpers/view/goh/form.rb</a>",
68
- "<a href="../../../../../../files/lib/bivouac/helpers/view/goh/html_rb.html" value="File: html.rb">lib/bivouac/helpers/view/goh/html.rb</a>",
69
- "<a href="../../../../../../files/lib/bivouac/helpers/view/goh/tooltip_rb.html" value="File: tooltip.rb">lib/bivouac/helpers/view/goh/tooltip.rb</a>",
70
- "<a href="../../../../../../files/lib/bivouac/helpers/view/goh/scriptaculous_rb.html" value="File: scriptaculous.rb">lib/bivouac/helpers/view/goh/scriptaculous.rb</a>",
71
- "<a href="../../../../../../files/lib/bivouac/helpers/view/goh/javascript_rb.html" value="File: javascript.rb">lib/bivouac/helpers/view/goh/javascript.rb</a>",
72
- <a href="http://greg.rubyfr.net">nil</a>].each do<br />
73
- <a href="../../../../../../classes/JavaScriptGenerator.html" title="Class: JavaScriptGenerator">JavaScriptGenerator</a>.view_html<br />
74
- <a href="../../../../../../classes/BivouacHelpers.html" title="Module: BivouacHelpers">BivouacHelpers</a>.view_html<br />
75
- <a href="../../../../../../classes/BivouacHelpers/TooltipView.html" title="Module: BivouacHelpers::TooltipView">BivouacHelpers::TooltipView</a>.view_html<br />
76
- <a href="../../../../../../classes/BivouacHelpers/ScriptAculoUsView.html" title="Module: BivouacHelpers::ScriptAculoUsView">BivouacHelpers::ScriptAculoUsView</a>.view_html<br />
77
- <a href="../../../../../../classes/BivouacHelpers/BaseView.html" title="Module: BivouacHelpers::BaseView">BivouacHelpers::BaseView</a>.view_html<br />
78
- <a href="../../../../../../classes/BivouacHelpers/JavaScriptView.html" title="Module: BivouacHelpers::JavaScriptView">BivouacHelpers::JavaScriptView</a>.view_html<br />
79
- <a href="../../../../../../classes/BivouacHelpers/HtmlView.html" title="Module: BivouacHelpers::HtmlView">BivouacHelpers::HtmlView</a>.view_html<br />
80
- <a href="../../../../../../classes/BivouacHelpers/FormView.html" title="Module: BivouacHelpers::FormView">BivouacHelpers::FormView</a>.view_html<br />
81
- end</strong>
82
- </td></tr>
83
- </table>
84
- </ul>
85
- </div>
86
-
87
- <div id="lib/bivouac/helpers/view/goh/html.rb" class="page_shade">
88
- <div class="page">
89
- <div class="header">
90
- <div class="path">lib/bivouac/helpers/view/goh/html.rb / Thu Sep 06 15:59:21 +0200 2007</div>
91
- </div>
92
-
93
- <p>
94
- bivouac/helpers/view/html
95
- </p>
96
-
97
-
98
-
99
-
100
-
101
-
102
-
103
- </div>
104
- </div>
105
-
106
-
107
- </div>
108
- </body>
109
- </html>
@@ -1,113 +0,0 @@
1
-
2
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
3
- <html>
4
- <head>
5
- <title>
6
- Bivouac, the Documentation &raquo; File: javascript.rb
7
- </title>
8
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
9
- <link rel="stylesheet" href="../../../../../.././rdoc-style.css" type="text/css" media="screen" />
10
- <script language="JavaScript" type="text/javascript">
11
- // <![CDATA[
12
-
13
- function toggleSource( id )
14
- {
15
- var elem
16
- var link
17
-
18
- if( document.getElementById )
19
- {
20
- elem = document.getElementById( id )
21
- link = document.getElementById( "l_" + id )
22
- }
23
- else if ( document.all )
24
- {
25
- elem = eval( "document.all." + id )
26
- link = eval( "document.all.l_" + id )
27
- }
28
- else
29
- return false;
30
-
31
- if( elem.style.display == "block" )
32
- {
33
- elem.style.display = "none"
34
- link.innerHTML = "show source"
35
- }
36
- else
37
- {
38
- elem.style.display = "block"
39
- link.innerHTML = "hide source"
40
- }
41
- }
42
-
43
- function openCode( url )
44
- {
45
- window.open( url, "SOURCE_CODE", "width=400,height=400,scrollbars=yes" )
46
- }
47
- // ]]>
48
- </script>
49
- </head>
50
- <body>
51
- <!--
52
- <div id="menu">
53
- <h3 class="title">File: javascript.rb</h3>
54
- </div>
55
- -->
56
- <div id="fullpage">
57
- <div id="pager">
58
- <table>
59
- <tr><td><img src="../../../../../../rubyfr.png" /></td>
60
- <td id="pagertd">
61
- <strong># File: javascript.rb<br />
62
- [
63
- "<a href="../../../../../../files/README.html" value="File: README">README</a>",
64
- "<a href="../../../../../../files/AUTHORS.html" value="File: AUTHORS">AUTHORS</a>",
65
- "<a href="../../../../../../files/COPYING.html" value="File: COPYING">COPYING</a>",
66
- "<a href="../../../../../../files/lib/bivouac/helpers/view/goh/base_rb.html" value="File: base.rb">lib/bivouac/helpers/view/goh/base.rb</a>",
67
- "<a href="../../../../../../files/lib/bivouac/helpers/view/goh/form_rb.html" value="File: form.rb">lib/bivouac/helpers/view/goh/form.rb</a>",
68
- "<a href="../../../../../../files/lib/bivouac/helpers/view/goh/html_rb.html" value="File: html.rb">lib/bivouac/helpers/view/goh/html.rb</a>",
69
- "<a href="../../../../../../files/lib/bivouac/helpers/view/goh/tooltip_rb.html" value="File: tooltip.rb">lib/bivouac/helpers/view/goh/tooltip.rb</a>",
70
- "<a href="../../../../../../files/lib/bivouac/helpers/view/goh/scriptaculous_rb.html" value="File: scriptaculous.rb">lib/bivouac/helpers/view/goh/scriptaculous.rb</a>",
71
- "<a href="../../../../../../files/lib/bivouac/helpers/view/goh/javascript_rb.html" value="File: javascript.rb">lib/bivouac/helpers/view/goh/javascript.rb</a>",
72
- <a href="http://greg.rubyfr.net">nil</a>].each do<br />
73
- <a href="../../../../../../classes/JavaScriptGenerator.html" title="Class: JavaScriptGenerator">JavaScriptGenerator</a>.view_html<br />
74
- <a href="../../../../../../classes/BivouacHelpers.html" title="Module: BivouacHelpers">BivouacHelpers</a>.view_html<br />
75
- <a href="../../../../../../classes/BivouacHelpers/TooltipView.html" title="Module: BivouacHelpers::TooltipView">BivouacHelpers::TooltipView</a>.view_html<br />
76
- <a href="../../../../../../classes/BivouacHelpers/ScriptAculoUsView.html" title="Module: BivouacHelpers::ScriptAculoUsView">BivouacHelpers::ScriptAculoUsView</a>.view_html<br />
77
- <a href="../../../../../../classes/BivouacHelpers/BaseView.html" title="Module: BivouacHelpers::BaseView">BivouacHelpers::BaseView</a>.view_html<br />
78
- <a href="../../../../../../classes/BivouacHelpers/JavaScriptView.html" title="Module: BivouacHelpers::JavaScriptView">BivouacHelpers::JavaScriptView</a>.view_html<br />
79
- <a href="../../../../../../classes/BivouacHelpers/HtmlView.html" title="Module: BivouacHelpers::HtmlView">BivouacHelpers::HtmlView</a>.view_html<br />
80
- <a href="../../../../../../classes/BivouacHelpers/FormView.html" title="Module: BivouacHelpers::FormView">BivouacHelpers::FormView</a>.view_html<br />
81
- end</strong>
82
- </td></tr>
83
- </table>
84
- </ul>
85
- </div>
86
-
87
- <div id="lib/bivouac/helpers/view/goh/javascript.rb" class="page_shade">
88
- <div class="page">
89
- <div class="header">
90
- <div class="path">lib/bivouac/helpers/view/goh/javascript.rb / Wed Sep 12 12:22:52 +0200 2007</div>
91
- </div>
92
-
93
- <p>
94
- bivouac/helpers/view/javascript
95
- </p>
96
-
97
-
98
- <h4>Requires:</h4>
99
- <ul>
100
- <li>active_support</li>
101
- </ul>
102
-
103
-
104
-
105
-
106
-
107
- </div>
108
- </div>
109
-
110
-
111
- </div>
112
- </body>
113
- </html>
@@ -1,113 +0,0 @@
1
-
2
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
3
- <html>
4
- <head>
5
- <title>
6
- Bivouac, the Documentation &raquo; File: scriptaculous.rb
7
- </title>
8
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
9
- <link rel="stylesheet" href="../../../../../.././rdoc-style.css" type="text/css" media="screen" />
10
- <script language="JavaScript" type="text/javascript">
11
- // <![CDATA[
12
-
13
- function toggleSource( id )
14
- {
15
- var elem
16
- var link
17
-
18
- if( document.getElementById )
19
- {
20
- elem = document.getElementById( id )
21
- link = document.getElementById( "l_" + id )
22
- }
23
- else if ( document.all )
24
- {
25
- elem = eval( "document.all." + id )
26
- link = eval( "document.all.l_" + id )
27
- }
28
- else
29
- return false;
30
-
31
- if( elem.style.display == "block" )
32
- {
33
- elem.style.display = "none"
34
- link.innerHTML = "show source"
35
- }
36
- else
37
- {
38
- elem.style.display = "block"
39
- link.innerHTML = "hide source"
40
- }
41
- }
42
-
43
- function openCode( url )
44
- {
45
- window.open( url, "SOURCE_CODE", "width=400,height=400,scrollbars=yes" )
46
- }
47
- // ]]>
48
- </script>
49
- </head>
50
- <body>
51
- <!--
52
- <div id="menu">
53
- <h3 class="title">File: scriptaculous.rb</h3>
54
- </div>
55
- -->
56
- <div id="fullpage">
57
- <div id="pager">
58
- <table>
59
- <tr><td><img src="../../../../../../rubyfr.png" /></td>
60
- <td id="pagertd">
61
- <strong># File: scriptaculous.rb<br />
62
- [
63
- "<a href="../../../../../../files/README.html" value="File: README">README</a>",
64
- "<a href="../../../../../../files/AUTHORS.html" value="File: AUTHORS">AUTHORS</a>",
65
- "<a href="../../../../../../files/COPYING.html" value="File: COPYING">COPYING</a>",
66
- "<a href="../../../../../../files/lib/bivouac/helpers/view/goh/base_rb.html" value="File: base.rb">lib/bivouac/helpers/view/goh/base.rb</a>",
67
- "<a href="../../../../../../files/lib/bivouac/helpers/view/goh/form_rb.html" value="File: form.rb">lib/bivouac/helpers/view/goh/form.rb</a>",
68
- "<a href="../../../../../../files/lib/bivouac/helpers/view/goh/html_rb.html" value="File: html.rb">lib/bivouac/helpers/view/goh/html.rb</a>",
69
- "<a href="../../../../../../files/lib/bivouac/helpers/view/goh/tooltip_rb.html" value="File: tooltip.rb">lib/bivouac/helpers/view/goh/tooltip.rb</a>",
70
- "<a href="../../../../../../files/lib/bivouac/helpers/view/goh/scriptaculous_rb.html" value="File: scriptaculous.rb">lib/bivouac/helpers/view/goh/scriptaculous.rb</a>",
71
- "<a href="../../../../../../files/lib/bivouac/helpers/view/goh/javascript_rb.html" value="File: javascript.rb">lib/bivouac/helpers/view/goh/javascript.rb</a>",
72
- <a href="http://greg.rubyfr.net">nil</a>].each do<br />
73
- <a href="../../../../../../classes/JavaScriptGenerator.html" title="Class: JavaScriptGenerator">JavaScriptGenerator</a>.view_html<br />
74
- <a href="../../../../../../classes/BivouacHelpers.html" title="Module: BivouacHelpers">BivouacHelpers</a>.view_html<br />
75
- <a href="../../../../../../classes/BivouacHelpers/TooltipView.html" title="Module: BivouacHelpers::TooltipView">BivouacHelpers::TooltipView</a>.view_html<br />
76
- <a href="../../../../../../classes/BivouacHelpers/ScriptAculoUsView.html" title="Module: BivouacHelpers::ScriptAculoUsView">BivouacHelpers::ScriptAculoUsView</a>.view_html<br />
77
- <a href="../../../../../../classes/BivouacHelpers/BaseView.html" title="Module: BivouacHelpers::BaseView">BivouacHelpers::BaseView</a>.view_html<br />
78
- <a href="../../../../../../classes/BivouacHelpers/JavaScriptView.html" title="Module: BivouacHelpers::JavaScriptView">BivouacHelpers::JavaScriptView</a>.view_html<br />
79
- <a href="../../../../../../classes/BivouacHelpers/HtmlView.html" title="Module: BivouacHelpers::HtmlView">BivouacHelpers::HtmlView</a>.view_html<br />
80
- <a href="../../../../../../classes/BivouacHelpers/FormView.html" title="Module: BivouacHelpers::FormView">BivouacHelpers::FormView</a>.view_html<br />
81
- end</strong>
82
- </td></tr>
83
- </table>
84
- </ul>
85
- </div>
86
-
87
- <div id="lib/bivouac/helpers/view/goh/scriptaculous.rb" class="page_shade">
88
- <div class="page">
89
- <div class="header">
90
- <div class="path">lib/bivouac/helpers/view/goh/scriptaculous.rb / Wed Sep 12 12:20:38 +0200 2007</div>
91
- </div>
92
-
93
- <p>
94
- bivouac/helpers/view/scriptaculous
95
- </p>
96
-
97
-
98
- <h4>Requires:</h4>
99
- <ul>
100
- <li>active_support</li>
101
- </ul>
102
-
103
-
104
-
105
-
106
-
107
- </div>
108
- </div>
109
-
110
-
111
- </div>
112
- </body>
113
- </html>
@@ -1,109 +0,0 @@
1
-
2
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
3
- <html>
4
- <head>
5
- <title>
6
- Bivouac, the Documentation &raquo; File: tooltip.rb
7
- </title>
8
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
9
- <link rel="stylesheet" href="../../../../../.././rdoc-style.css" type="text/css" media="screen" />
10
- <script language="JavaScript" type="text/javascript">
11
- // <![CDATA[
12
-
13
- function toggleSource( id )
14
- {
15
- var elem
16
- var link
17
-
18
- if( document.getElementById )
19
- {
20
- elem = document.getElementById( id )
21
- link = document.getElementById( "l_" + id )
22
- }
23
- else if ( document.all )
24
- {
25
- elem = eval( "document.all." + id )
26
- link = eval( "document.all.l_" + id )
27
- }
28
- else
29
- return false;
30
-
31
- if( elem.style.display == "block" )
32
- {
33
- elem.style.display = "none"
34
- link.innerHTML = "show source"
35
- }
36
- else
37
- {
38
- elem.style.display = "block"
39
- link.innerHTML = "hide source"
40
- }
41
- }
42
-
43
- function openCode( url )
44
- {
45
- window.open( url, "SOURCE_CODE", "width=400,height=400,scrollbars=yes" )
46
- }
47
- // ]]>
48
- </script>
49
- </head>
50
- <body>
51
- <!--
52
- <div id="menu">
53
- <h3 class="title">File: tooltip.rb</h3>
54
- </div>
55
- -->
56
- <div id="fullpage">
57
- <div id="pager">
58
- <table>
59
- <tr><td><img src="../../../../../../rubyfr.png" /></td>
60
- <td id="pagertd">
61
- <strong># File: tooltip.rb<br />
62
- [
63
- "<a href="../../../../../../files/README.html" value="File: README">README</a>",
64
- "<a href="../../../../../../files/AUTHORS.html" value="File: AUTHORS">AUTHORS</a>",
65
- "<a href="../../../../../../files/COPYING.html" value="File: COPYING">COPYING</a>",
66
- "<a href="../../../../../../files/lib/bivouac/helpers/view/goh/base_rb.html" value="File: base.rb">lib/bivouac/helpers/view/goh/base.rb</a>",
67
- "<a href="../../../../../../files/lib/bivouac/helpers/view/goh/form_rb.html" value="File: form.rb">lib/bivouac/helpers/view/goh/form.rb</a>",
68
- "<a href="../../../../../../files/lib/bivouac/helpers/view/goh/html_rb.html" value="File: html.rb">lib/bivouac/helpers/view/goh/html.rb</a>",
69
- "<a href="../../../../../../files/lib/bivouac/helpers/view/goh/tooltip_rb.html" value="File: tooltip.rb">lib/bivouac/helpers/view/goh/tooltip.rb</a>",
70
- "<a href="../../../../../../files/lib/bivouac/helpers/view/goh/scriptaculous_rb.html" value="File: scriptaculous.rb">lib/bivouac/helpers/view/goh/scriptaculous.rb</a>",
71
- "<a href="../../../../../../files/lib/bivouac/helpers/view/goh/javascript_rb.html" value="File: javascript.rb">lib/bivouac/helpers/view/goh/javascript.rb</a>",
72
- <a href="http://greg.rubyfr.net">nil</a>].each do<br />
73
- <a href="../../../../../../classes/JavaScriptGenerator.html" title="Class: JavaScriptGenerator">JavaScriptGenerator</a>.view_html<br />
74
- <a href="../../../../../../classes/BivouacHelpers.html" title="Module: BivouacHelpers">BivouacHelpers</a>.view_html<br />
75
- <a href="../../../../../../classes/BivouacHelpers/TooltipView.html" title="Module: BivouacHelpers::TooltipView">BivouacHelpers::TooltipView</a>.view_html<br />
76
- <a href="../../../../../../classes/BivouacHelpers/ScriptAculoUsView.html" title="Module: BivouacHelpers::ScriptAculoUsView">BivouacHelpers::ScriptAculoUsView</a>.view_html<br />
77
- <a href="../../../../../../classes/BivouacHelpers/BaseView.html" title="Module: BivouacHelpers::BaseView">BivouacHelpers::BaseView</a>.view_html<br />
78
- <a href="../../../../../../classes/BivouacHelpers/JavaScriptView.html" title="Module: BivouacHelpers::JavaScriptView">BivouacHelpers::JavaScriptView</a>.view_html<br />
79
- <a href="../../../../../../classes/BivouacHelpers/HtmlView.html" title="Module: BivouacHelpers::HtmlView">BivouacHelpers::HtmlView</a>.view_html<br />
80
- <a href="../../../../../../classes/BivouacHelpers/FormView.html" title="Module: BivouacHelpers::FormView">BivouacHelpers::FormView</a>.view_html<br />
81
- end</strong>
82
- </td></tr>
83
- </table>
84
- </ul>
85
- </div>
86
-
87
- <div id="lib/bivouac/helpers/view/goh/tooltip.rb" class="page_shade">
88
- <div class="page">
89
- <div class="header">
90
- <div class="path">lib/bivouac/helpers/view/goh/tooltip.rb / Mon Sep 03 14:33:26 +0200 2007</div>
91
- </div>
92
-
93
- <p>
94
- bivouac/helpers/view/html
95
- </p>
96
-
97
-
98
-
99
-
100
-
101
-
102
-
103
- </div>
104
- </div>
105
-
106
-
107
- </div>
108
- </body>
109
- </html>
data/doc/rdoc/index.html DELETED
@@ -1,10 +0,0 @@
1
-
2
- <HTML>
3
- <HEAD>
4
- <META HTTP-EQUIV="refresh" content="0;URL=files/README.html">
5
- <TITLE>Bivouac, the Documentation</TITLE>
6
- </HEAD>
7
- <BODY>
8
- Click <a href="files/README.html">here</a> to open the docs.
9
- </BODY>
10
- </HTML>
Binary file
@@ -1,106 +0,0 @@
1
-
2
- body {
3
- font: normal 14px verdana,arial,'Bitstream Vera Sans',helvetica,sans-serif;
4
- line-height: 160%;
5
- padding: 0; margin: 0;
6
- margin-bottom: 30px;
7
- /* background-color: #402; */
8
- background-color: #CCCC99;
9
- }
10
- h1, h2, h3, h4 {
11
- font-family: Utopia, Georgia, serif;
12
- font-weight: bold;
13
- letter-spacing: -0.018em;
14
- }
15
- h1 { font-size: 24px; margin: .15em 1em 0 0 }
16
- h2 { font-size: 24px }
17
- h3 { font-size: 19px }
18
- h4 { font-size: 17px; font-weight: normal; }
19
- h4.ruled { border-bottom: solid 1px #CC9; }
20
- h2.ruled { padding-top: 35px; border-top: solid 1px #AA5; }
21
-
22
- /* Link styles */
23
- :link, :visited {
24
-
25
- }
26
- :link:hover, :visited:hover {
27
-
28
- }
29
- #fullpage {
30
- width: 720px;
31
- padding-top: 20px;
32
- margin: 0 auto;
33
- }
34
- .page_shade, .page {
35
- border-left: 1px solid black;
36
- border-right: 1px solid black;
37
- border-bottom: 1px solid black;
38
- background-color: #FFFFFF;
39
- }
40
- .page {
41
- padding: 20px 35px;
42
- }
43
- .page .header {
44
- float: right;
45
- color: #777;
46
- font-size: 10px;
47
- }
48
- .page h1, .page h2, .page h3 {
49
- clear: both;
50
- text-align: center;
51
- }
52
- #pager {
53
- background-color: #EEEEAE;
54
- border-top: 2px solid black;
55
- border-left: 2px solid black;
56
- border-right: 2px solid black;
57
- border-bottom: 1px dashed #999966;
58
- padding: 20px 0 20px 20px;
59
- color: #666633;
60
- font-size: 11px;
61
- }
62
- #pager :link, #pager :visited {
63
- color: #8E2400;
64
- padding: 0px 5px;
65
- }
66
- #pager :link:hover, #pager :visited:hover {
67
- color: #8E2400;
68
- }
69
- #pagertd {
70
- font-size: 11px;
71
- }
72
- #logo { float: left; }
73
- #menu {
74
- padding: 4px 12px;
75
- margin: 0;
76
- }
77
- #menu h3 { padding: 0; margin: 0; }
78
- #menu #links { float: right; }
79
- pre { font-weight: bold; color: black; }
80
- tt { color: #703; font-size: 12pt; }
81
- .dyn-source {
82
- background-color: #EEEEEE;
83
- border: 1px solid #CCCCCC;
84
- padding: 4px 8px;
85
- margin: 0;
86
- display: none; }
87
- .dyn-source pre {
88
- color: #000000;
89
- font-size: 8pt;
90
- font-familly: monospace;
91
-
92
- }
93
- .source-link { text-align: right; font-size: 8pt; }
94
- .ruby-comment { color: black; font-style: italic }
95
- .ruby-constant { color: #123456; font-weight: bold; }
96
- .ruby-identifier { color: #005599; }
97
- .ruby-ivar { color: orange; }
98
- .ruby-keyword { color: red; font-weight: bold }
99
- .ruby-node { color: #FFFFFF; }
100
- .ruby-operator { color: #055005; }
101
- .ruby-regexp { color: #DDFFDD; }
102
- .ruby-value { color: #FFAAAA; font-style: italic }
103
- .kw { color: red; font-weight: bold }
104
- .cmt { color: green; font-style: italic }
105
- .str { color: #EECCCC; font-style: italic }
106
- .re { color: #EECCCC; }
data/doc/rdoc/rubyfr.png DELETED
Binary file
@@ -1,84 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- #
4
- # Project Blog
5
- #
6
- # Created using bivouac on Wed Aug 01 09:49:08 +0200 2007.
7
- # Copyright (c) 2007 __My__. All rights reserved.
8
- #
9
-
10
- require 'rubygems'
11
- require 'camping'
12
- require 'camping/session'
13
- require 'mime/types'
14
- require 'bivouac'
15
-
16
- include Bivouac
17
-
18
- begin
19
- require 'erubis'
20
- ERB = Erubis::Eruby
21
- rescue MissingSourceFile
22
- require 'erb'
23
- end
24
-
25
- Camping.goes :Blog
26
-
27
- module Blog
28
- def render(m, layout=false)
29
- content = ERB.new(IO.read("#{File.dirname(__FILE__)}/views/#{m}.html")).result(binding)
30
- content = ERB.new(IO.read("#{File.dirname(__FILE__)}/views/layout.html")).result(binding) if layout
31
- return content
32
- end
33
- end
34
-
35
- # Load helpers from app/helpers
36
- files( 'helpers' ) { |file| require( file ) }
37
-
38
- # Load models from app/models
39
- files( 'models' ) { |file| require( file ) }
40
-
41
- # Load database schema from db/migrate
42
- files( '../db/migrate' ) { |file| require( file ) }
43
-
44
- # Load controllers from app/controllers
45
- files( 'controllers', :except => [File.basename(__FILE__)] ) { |file| require( file ) }
46
-
47
- module Blog::Controllers
48
- class Public < R '/public/(.+)'
49
- PATH = File.expand_path(File.dirname(__FILE__))
50
-
51
- def get file
52
- if file.include? '..'
53
- @status = '403'
54
- return '403 - Invalid path'
55
- else
56
- type = (MIME::Types.type_for(file)[0] || '/text/plain').to_s
57
- @headers['Content-Type'] = type
58
- @headers['X-Sendfile'] = File.join PATH, '..', 'public', file
59
- end
60
- end
61
- end
62
- end
63
-
64
- # Load create
65
- files( '../db' ) { |file| require( file ) }
66
-
67
- # WEBrick postamble
68
- if __FILE__ == $0
69
- require 'webrick/httpserver'
70
- require 'camping/webrick'
71
-
72
- Blog::Models::Base.establish_connection :adapter => 'sqlite3', :database => File.dirname(__FILE__) + "/../db/Blog.db"
73
- Blog::Models::Base.logger = Logger.new(File.dirname(__FILE__) + "/../log/Blog.log")
74
- Blog.create if Blog.respond_to? :create
75
- s = WEBrick::HTTPServer.new :BindAddress => "0.0.0.0", :Port => 3301
76
- s.mount "/", WEBrick::CampingHandler, Blog
77
-
78
- # This lets Ctrl+C shut down your server
79
- trap(:INT) do
80
- s.shutdown
81
- end
82
-
83
- s.start
84
- end
@@ -1,19 +0,0 @@
1
- module Blog::Controllers
2
- class Add
3
- def get
4
- unless @state.user_id.blank?
5
- @user = User.find @state.user_id
6
- @post = Post.new
7
- end
8
- render :add, true
9
- end
10
- def post
11
- unless @state.user_id.blank?
12
- post = Post.create :title => input.post_title,
13
- :body => input.post_body,
14
- :user_id => @state.user_id
15
- redirect View, post
16
- end
17
- end
18
- end
19
- end