hobix 0.4 → 0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (129) hide show
  1. data/COPYING +18 -0
  2. data/README +18 -0
  3. data/Rakefile +96 -0
  4. data/bin/hobix +7 -3
  5. data/contrib/blosxom-to-hobix.rb +253 -0
  6. data/contrib/txp-to-hobix.rb +56 -0
  7. data/contrib/webrick-all-mine.rb +20 -0
  8. data/doc/CHANGELOG +285 -0
  9. data/doc/rdoc/classes/Hobix/API.html +382 -0
  10. data/doc/rdoc/classes/Hobix/Article.html +111 -0
  11. data/doc/rdoc/classes/Hobix/BaseContent.html +692 -0
  12. data/doc/rdoc/classes/Hobix/BaseEntry.html +218 -0
  13. data/doc/rdoc/classes/Hobix/BaseFacet.html +205 -0
  14. data/doc/rdoc/classes/Hobix/BaseOutput.html +122 -0
  15. data/doc/rdoc/classes/Hobix/BasePlugin.html +201 -0
  16. data/doc/rdoc/classes/Hobix/BaseProperties/ClassMethods.html +243 -0
  17. data/doc/rdoc/classes/Hobix/BaseProperties.html +218 -0
  18. data/doc/rdoc/classes/Hobix/BasePublish.html +157 -0
  19. data/doc/rdoc/classes/Hobix/BaseStorage.html +417 -0
  20. data/doc/rdoc/classes/Hobix/BixWik/Entry.html +196 -0
  21. data/doc/rdoc/classes/Hobix/BixWik/IndexEntry.html +170 -0
  22. data/doc/rdoc/classes/Hobix/BixWik/WikiRedCloth.html +111 -0
  23. data/doc/rdoc/classes/Hobix/BixWik.html +418 -0
  24. data/doc/rdoc/classes/Hobix/BixWikPlugin.html +158 -0
  25. data/doc/rdoc/classes/Hobix/CommandLine.html +1970 -0
  26. data/doc/rdoc/classes/Hobix/Comment.html +113 -0
  27. data/doc/rdoc/classes/Hobix/Config.html +212 -0
  28. data/doc/rdoc/classes/Hobix/DataMarsh.html +667 -0
  29. data/doc/rdoc/classes/Hobix/Entry.html +178 -0
  30. data/doc/rdoc/classes/Hobix/EntryEnum.html +162 -0
  31. data/doc/rdoc/classes/Hobix/Enumerable.html +170 -0
  32. data/doc/rdoc/classes/Hobix/Facets/WikiEdit.html +180 -0
  33. data/doc/rdoc/classes/Hobix/Facets.html +111 -0
  34. data/doc/rdoc/classes/Hobix/LinkList.html +182 -0
  35. data/doc/rdoc/classes/Hobix/Out/Quick.html +412 -0
  36. data/doc/rdoc/classes/Hobix/Out.html +119 -0
  37. data/doc/rdoc/classes/Hobix/Page.html +381 -0
  38. data/doc/rdoc/classes/Hobix/Trackback.html +113 -0
  39. data/doc/rdoc/classes/Hobix/UriStr.html +198 -0
  40. data/doc/rdoc/classes/Hobix/WebApp/QueryString.html +207 -0
  41. data/doc/rdoc/classes/Hobix/WebApp/QueryValidationFailure.html +111 -0
  42. data/doc/rdoc/classes/Hobix/WebApp.html +1383 -0
  43. data/doc/rdoc/classes/Hobix/Weblog/AuthorNotFound.html +111 -0
  44. data/doc/rdoc/classes/Hobix/Weblog.html +2082 -0
  45. data/doc/rdoc/classes/Hobix.html +399 -0
  46. data/doc/rdoc/classes/Kernel.html +139 -0
  47. data/doc/rdoc/classes/Regexp.html +154 -0
  48. data/doc/rdoc/classes/YAML/Omap.html +144 -0
  49. data/doc/rdoc/classes/YAML.html +111 -0
  50. data/doc/rdoc/created.rid +1 -0
  51. data/doc/rdoc/files/COPYING.html +129 -0
  52. data/doc/rdoc/files/README.html +131 -0
  53. data/doc/rdoc/files/doc/CHANGELOG.html +101 -0
  54. data/doc/rdoc/files/lib/hobix/api_rb.html +119 -0
  55. data/doc/rdoc/files/lib/hobix/article_rb.html +126 -0
  56. data/doc/rdoc/files/lib/hobix/base_rb.html +128 -0
  57. data/doc/rdoc/files/lib/hobix/bixwik_rb.html +126 -0
  58. data/doc/rdoc/files/lib/hobix/commandline_rb.html +140 -0
  59. data/doc/rdoc/files/lib/hobix/comments_rb.html +126 -0
  60. data/doc/rdoc/files/lib/hobix/config_rb.html +125 -0
  61. data/doc/rdoc/files/lib/hobix/datamarsh_rb.html +108 -0
  62. data/doc/rdoc/files/lib/hobix/entry_rb.html +118 -0
  63. data/doc/rdoc/files/lib/hobix/linklist_rb.html +127 -0
  64. data/doc/rdoc/files/lib/hobix/publisher_rb.html +126 -0
  65. data/doc/rdoc/files/lib/hobix/trackbacks_rb.html +128 -0
  66. data/doc/rdoc/files/lib/hobix/webapp_rb.html +127 -0
  67. data/doc/rdoc/files/lib/hobix/weblog_rb.html +135 -0
  68. data/doc/rdoc/files/lib/hobix_rb.html +127 -0
  69. data/doc/rdoc/fr_class_index.html +67 -0
  70. data/doc/rdoc/fr_file_index.html +44 -0
  71. data/doc/rdoc/fr_method_index.html +307 -0
  72. data/doc/rdoc/index.html +24 -0
  73. data/doc/rdoc/rdoc-style.css +208 -0
  74. data/git_hobix_update.php +13 -0
  75. data/lib/hobix/base.rb +6 -3
  76. data/lib/hobix/bixwik.rb +12 -12
  77. data/lib/hobix/commandline.rb +18 -2
  78. data/lib/hobix/comments.rb +4 -5
  79. data/lib/hobix/entry.rb +2 -1
  80. data/lib/hobix/facets/comments.rb +31 -6
  81. data/lib/hobix/linklist.rb +6 -1
  82. data/lib/hobix/out/atom.rb +29 -20
  83. data/lib/hobix/out/quick.rb +8 -6
  84. data/lib/hobix/out/rss.rb +16 -3
  85. data/lib/hobix/plugin/akismet.rb +196 -0
  86. data/lib/hobix/plugin/calendar.rb +6 -14
  87. data/lib/hobix/plugin/recent_comments.rb +4 -2
  88. data/lib/hobix/plugin/tags.rb +1 -1
  89. data/lib/hobix/storage/filesys.rb +41 -31
  90. data/lib/hobix/trackbacks.rb +1 -2
  91. data/lib/hobix/weblog.rb +73 -40
  92. data/lib/hobix.rb +9 -2
  93. data/share/default-blog/hobix.yaml +16 -0
  94. data/share/default-blog/htdocs/site.css +174 -0
  95. data/share/default-blog/skel/entry.html.quick +0 -0
  96. data/share/default-blog/skel/index.atom.atom +0 -0
  97. data/share/default-blog/skel/index.html.quick-summary +0 -0
  98. data/share/default-blog/skel/index.xml.rss +0 -0
  99. data/share/default-blog/skel/index.yaml.okaynews +0 -0
  100. data/share/default-blog/skel/monthly.html.quick-archive +0 -0
  101. data/share/default-blog/skel/section.html.quick-archive +0 -0
  102. data/share/default-blog/skel/yearly.html.quick-archive +0 -0
  103. data/share/default-blog-modes.yaml +7 -0
  104. data/share/default-blog.apache-cgi.patch +8 -0
  105. data/share/default-blog.apache-ssi.patch +38 -0
  106. data/share/default-blog.apache2-ssi.patch +3 -0
  107. data/share/default-blog.cgi.patch +8 -0
  108. data/share/default-blog.comments.patch +5 -0
  109. data/share/default-blog.prototype.patch +766 -0
  110. data/share/default-blog.publisher.patch +5 -0
  111. data/share/default-blog.wiki.patch +29 -0
  112. data/share/publisher/css/control.css +90 -0
  113. data/share/publisher/css/form.css +238 -0
  114. data/share/publisher/css/form.import.css +72 -0
  115. data/share/publisher/css/main-menu.css +134 -0
  116. data/share/publisher/i/hobix-emblazen-1.png +0 -0
  117. data/share/publisher/i/hobix-emblazen-2.png +0 -0
  118. data/share/publisher/i/hobix-emblazen-3.png +0 -0
  119. data/share/publisher/i/hobix-emblazen-4.png +0 -0
  120. data/share/publisher/i/hobix-emblazen-5.png +0 -0
  121. data/share/publisher/i/hobix-emblazen-6.png +0 -0
  122. data/share/publisher/i/hobix-emblazen-7.png +0 -0
  123. data/share/publisher/index.erb +66 -0
  124. data/share/publisher/js/controls.js +261 -0
  125. data/share/publisher/js/dragdrop.js +476 -0
  126. data/share/publisher/js/effects.js +570 -0
  127. data/share/publisher/js/prototype.js +1011 -0
  128. metadata +196 -53
  129. checksums.yaml +0 -7
@@ -0,0 +1,418 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Module: Hobix::BixWik</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Module</strong></td>
53
+ <td class="class-name-in-header">Hobix::BixWik</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/lib/hobix/bixwik_rb.html">
59
+ lib/hobix/bixwik.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ </table>
66
+ </div>
67
+ <!-- banner header -->
68
+
69
+ <div id="bodyContent">
70
+
71
+
72
+
73
+ <div id="contextContent">
74
+
75
+
76
+
77
+ </div>
78
+
79
+ <div id="method-list">
80
+ <h3 class="section-bar">Methods</h3>
81
+
82
+ <div class="name-list">
83
+ <a href="#M000013">abs_link</a>&nbsp;&nbsp;
84
+ <a href="#M000007">default_entry_class</a>&nbsp;&nbsp;
85
+ <a href="#M000008">default_index_class</a>&nbsp;&nbsp;
86
+ <a href="#M000009">skel_index</a>&nbsp;&nbsp;
87
+ <a href="#M000012">skel_list_index</a>&nbsp;&nbsp;
88
+ <a href="#M000011">skel_recent_index</a>&nbsp;&nbsp;
89
+ <a href="#M000010">skel_recent_index</a>&nbsp;&nbsp;
90
+ <a href="#M000015">wiki_link</a>&nbsp;&nbsp;
91
+ <a href="#M000014">wiki_page</a>&nbsp;&nbsp;
92
+ <a href="#M000016">wiki_word</a>&nbsp;&nbsp;
93
+ </div>
94
+ </div>
95
+
96
+ </div>
97
+
98
+
99
+ <!-- if includes -->
100
+
101
+ <div id="section">
102
+
103
+ <div id="class-list">
104
+ <h3 class="section-bar">Classes and Modules</h3>
105
+
106
+ Class <a href="BixWik/Entry.html" class="link">Hobix::BixWik::Entry</a><br />
107
+ Class <a href="BixWik/IndexEntry.html" class="link">Hobix::BixWik::IndexEntry</a><br />
108
+ Class <a href="BixWik/WikiRedCloth.html" class="link">Hobix::BixWik::WikiRedCloth</a><br />
109
+
110
+ </div>
111
+
112
+ <div id="constants-list">
113
+ <h3 class="section-bar">Constants</h3>
114
+
115
+ <div class="name-list">
116
+ <table summary="Constants">
117
+ <tr class="top-aligned-row context-row">
118
+ <td class="context-item-name">QUICK_MENU</td>
119
+ <td>=</td>
120
+ <td class="context-item-value">YAML::load &lt;&lt;-END --- %YAML:1.0 !omap - HomePage: [Home Page, H, Start Over] - list/index: [All Pages, A, Alphabetically sorted list of pages] - recent/index: [Recently Revised, U, Pages sorted by when they were last changed] - authors/index: [Authors, ~, Who wrote what] - FeedList: [Feed List, ~, Subscribe to changes by RSS] END</td>
121
+ </tr>
122
+ </table>
123
+ </div>
124
+ </div>
125
+
126
+
127
+
128
+
129
+
130
+
131
+ <!-- if method_list -->
132
+ <div id="methods">
133
+ <h3 class="section-bar">Public Class methods</h3>
134
+
135
+ <div id="method-M000016" class="method-detail">
136
+ <a name="M000016"></a>
137
+
138
+ <div class="method-heading">
139
+ <a href="#M000016" class="method-signature">
140
+ <span class="method-name">wiki_word</span><span class="method-args">( id )</span>
141
+ </a>
142
+ </div>
143
+
144
+ <div class="method-description">
145
+ <p><a class="source-toggle" href="#"
146
+ onclick="toggleCode('M000016-source');return false;">[Source]</a></p>
147
+ <div class="method-source-code" id="M000016-source">
148
+ <pre>
149
+ <span class="ruby-comment cmt"># File lib/hobix/bixwik.rb, line 106</span>
150
+ 106: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">wiki_word</span>( <span class="ruby-identifier">id</span> )
151
+ 107: <span class="ruby-constant">Hobix</span><span class="ruby-operator">::</span><span class="ruby-constant">BixWik</span><span class="ruby-operator">::</span><span class="ruby-constant">QUICK_MENU</span>[ <span class="ruby-identifier">id</span> ].<span class="ruby-identifier">to_a</span>.<span class="ruby-identifier">first</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">id</span>.<span class="ruby-identifier">gsub</span>( <span class="ruby-regexp re">/^\w|_\w|[A-Z]/</span> ) { <span class="ruby-operator">|</span><span class="ruby-identifier">up</span><span class="ruby-operator">|</span> <span class="ruby-node">&quot; #{up[-1, 1].upcase}&quot;</span> }.<span class="ruby-identifier">strip</span>
152
+ 108: <span class="ruby-keyword kw">end</span>
153
+ </pre>
154
+ </div>
155
+ </div>
156
+ </div>
157
+
158
+ <h3 class="section-bar">Public Instance methods</h3>
159
+
160
+ <div id="method-M000013" class="method-detail">
161
+ <a name="M000013"></a>
162
+
163
+ <div class="method-heading">
164
+ <a href="#M000013" class="method-signature">
165
+ <span class="method-name">abs_link</span><span class="method-args">( word )</span>
166
+ </a>
167
+ </div>
168
+
169
+ <div class="method-description">
170
+ <p><a class="source-toggle" href="#"
171
+ onclick="toggleCode('M000013-source');return false;">[Source]</a></p>
172
+ <div class="method-source-code" id="M000013-source">
173
+ <pre>
174
+ <span class="ruby-comment cmt"># File lib/hobix/bixwik.rb, line 89</span>
175
+ 89: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">abs_link</span>( <span class="ruby-identifier">word</span> )
176
+ 90: <span class="ruby-identifier">output_entry_map</span>[<span class="ruby-identifier">word</span>] <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">output_entry_map</span>[<span class="ruby-identifier">word</span>][<span class="ruby-identifier">:page</span>].<span class="ruby-identifier">link</span>
177
+ 91: <span class="ruby-keyword kw">end</span>
178
+ </pre>
179
+ </div>
180
+ </div>
181
+ </div>
182
+
183
+ <div id="method-M000007" class="method-detail">
184
+ <a name="M000007"></a>
185
+
186
+ <div class="method-heading">
187
+ <a href="#M000007" class="method-signature">
188
+ <span class="method-name">default_entry_class</span><span class="method-args">()</span>
189
+ </a>
190
+ </div>
191
+
192
+ <div class="method-description">
193
+ <p><a class="source-toggle" href="#"
194
+ onclick="toggleCode('M000007-source');return false;">[Source]</a></p>
195
+ <div class="method-source-code" id="M000007-source">
196
+ <pre>
197
+ <span class="ruby-comment cmt"># File lib/hobix/bixwik.rb, line 41</span>
198
+ 41: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">default_entry_class</span>; <span class="ruby-value str">&quot;Hobix::BixWik::Entry&quot;</span>; <span class="ruby-keyword kw">end</span>
199
+ </pre>
200
+ </div>
201
+ </div>
202
+ </div>
203
+
204
+ <div id="method-M000008" class="method-detail">
205
+ <a name="M000008"></a>
206
+
207
+ <div class="method-heading">
208
+ <a href="#M000008" class="method-signature">
209
+ <span class="method-name">default_index_class</span><span class="method-args">()</span>
210
+ </a>
211
+ </div>
212
+
213
+ <div class="method-description">
214
+ <p><a class="source-toggle" href="#"
215
+ onclick="toggleCode('M000008-source');return false;">[Source]</a></p>
216
+ <div class="method-source-code" id="M000008-source">
217
+ <pre>
218
+ <span class="ruby-comment cmt"># File lib/hobix/bixwik.rb, line 42</span>
219
+ 42: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">default_index_class</span>; <span class="ruby-value str">&quot;Hobix::BixWik::IndexEntry&quot;</span>; <span class="ruby-keyword kw">end</span>
220
+ </pre>
221
+ </div>
222
+ </div>
223
+ </div>
224
+
225
+ <div id="method-M000009" class="method-detail">
226
+ <a name="M000009"></a>
227
+
228
+ <div class="method-heading">
229
+ <a href="#M000009" class="method-signature">
230
+ <span class="method-name">skel_index</span><span class="method-args">( path_storage, section_path ) {|:page =&gt; page, :entry =&gt; homePage| ...}</span>
231
+ </a>
232
+ </div>
233
+
234
+ <div class="method-description">
235
+ <p>
236
+ Handler for templates with `index&#8217; prefix. These pages simply mirror
237
+ the `HomePage&#8217; entry.
238
+ </p>
239
+ <p><a class="source-toggle" href="#"
240
+ onclick="toggleCode('M000009-source');return false;">[Source]</a></p>
241
+ <div class="method-source-code" id="M000009-source">
242
+ <pre>
243
+ <span class="ruby-comment cmt"># File lib/hobix/bixwik.rb, line 46</span>
244
+ 46: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">skel_index</span>( <span class="ruby-identifier">path_storage</span>, <span class="ruby-identifier">section_path</span> )
245
+ 47: <span class="ruby-identifier">homePage</span> = <span class="ruby-identifier">path_storage</span>.<span class="ruby-identifier">match</span>( <span class="ruby-regexp re">/^HomePage$/</span> ).<span class="ruby-identifier">first</span>
246
+ 48: <span class="ruby-identifier">page</span> = <span class="ruby-constant">Page</span>.<span class="ruby-identifier">new</span>( <span class="ruby-value str">'index'</span> )
247
+ 49: <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">homePage</span>
248
+ 50: <span class="ruby-identifier">homePage</span> = <span class="ruby-constant">Hobix</span><span class="ruby-operator">::</span><span class="ruby-constant">Storage</span><span class="ruby-operator">::</span><span class="ruby-constant">IndexEntry</span>.<span class="ruby-identifier">new</span>( <span class="ruby-identifier">path_storage</span>.<span class="ruby-identifier">default_entry</span>( <span class="ruby-identifier">authors</span>.<span class="ruby-identifier">keys</span>.<span class="ruby-identifier">first</span> ) )
249
+ 51: <span class="ruby-keyword kw">end</span>
250
+ 52: <span class="ruby-identifier">page</span>.<span class="ruby-identifier">timestamp</span> = <span class="ruby-identifier">homePage</span>.<span class="ruby-identifier">created</span>
251
+ 53: <span class="ruby-identifier">page</span>.<span class="ruby-identifier">updated</span> = <span class="ruby-identifier">homePage</span>.<span class="ruby-identifier">created</span>
252
+ 54: <span class="ruby-keyword kw">yield</span> <span class="ruby-operator">:</span><span class="ruby-identifier">page</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">page</span>, <span class="ruby-identifier">:entry</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">homePage</span>
253
+ 55: <span class="ruby-keyword kw">end</span>
254
+ </pre>
255
+ </div>
256
+ </div>
257
+ </div>
258
+
259
+ <div id="method-M000012" class="method-detail">
260
+ <a name="M000012"></a>
261
+
262
+ <div class="method-heading">
263
+ <a href="#M000012" class="method-signature">
264
+ <span class="method-name">skel_list_index</span><span class="method-args">( path_storage, section_path ) {|:page =&gt; page, :entries =&gt; all_pages, :no_load =&gt; true| ...}</span>
265
+ </a>
266
+ </div>
267
+
268
+ <div class="method-description">
269
+ <p>
270
+ Handler for templates with `list/index&#8217; prefix. These templates will
271
+ receive a list of all pages in the Wiki.
272
+ </p>
273
+ <p><a class="source-toggle" href="#"
274
+ onclick="toggleCode('M000012-source');return false;">[Source]</a></p>
275
+ <div class="method-source-code" id="M000012-source">
276
+ <pre>
277
+ <span class="ruby-comment cmt"># File lib/hobix/bixwik.rb, line 81</span>
278
+ 81: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">skel_list_index</span>( <span class="ruby-identifier">path_storage</span>, <span class="ruby-identifier">section_path</span> )
279
+ 82: <span class="ruby-identifier">all_pages</span> = <span class="ruby-identifier">storage</span>.<span class="ruby-identifier">all</span>
280
+ 83: <span class="ruby-identifier">page</span> = <span class="ruby-constant">Page</span>.<span class="ruby-identifier">new</span>( <span class="ruby-value str">'list/index'</span> )
281
+ 84: <span class="ruby-identifier">page</span>.<span class="ruby-identifier">timestamp</span> = <span class="ruby-identifier">all_pages</span>.<span class="ruby-identifier">first</span>.<span class="ruby-identifier">created</span>
282
+ 85: <span class="ruby-identifier">page</span>.<span class="ruby-identifier">updated</span> = <span class="ruby-identifier">storage</span>.<span class="ruby-identifier">last_updated</span>( <span class="ruby-identifier">all_pages</span> )
283
+ 86: <span class="ruby-keyword kw">yield</span> <span class="ruby-operator">:</span><span class="ruby-identifier">page</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">page</span>, <span class="ruby-identifier">:entries</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">all_pages</span>, <span class="ruby-identifier">:no_load</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">true</span>
284
+ 87: <span class="ruby-keyword kw">end</span>
285
+ </pre>
286
+ </div>
287
+ </div>
288
+ </div>
289
+
290
+ <div id="method-M000011" class="method-detail">
291
+ <a name="M000011"></a>
292
+
293
+ <div class="method-heading">
294
+ <a href="#M000011" class="method-signature">
295
+ <span class="method-name">skel_recent_index</span><span class="method-args">( path_storage, section_path ) {|:page =&gt; page, :entries =&gt; index_entries| ...}</span>
296
+ </a>
297
+ </div>
298
+
299
+ <div class="method-description">
300
+ <p>
301
+ Handler for templates with `recent/index&#8217; prefix. These templates
302
+ will receive entries loaded by +<a
303
+ href="BaseStorage.html#M000121">Hobix::BaseStorage#lastn</a>+. Only one
304
+ index page is requested by this handler.
305
+ </p>
306
+ <p><a class="source-toggle" href="#"
307
+ onclick="toggleCode('M000011-source');return false;">[Source]</a></p>
308
+ <div class="method-source-code" id="M000011-source">
309
+ <pre>
310
+ <span class="ruby-comment cmt"># File lib/hobix/bixwik.rb, line 71</span>
311
+ 71: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">skel_recent_index</span>( <span class="ruby-identifier">path_storage</span>, <span class="ruby-identifier">section_path</span> )
312
+ 72: <span class="ruby-identifier">index_entries</span> = <span class="ruby-identifier">storage</span>.<span class="ruby-identifier">lastn</span>( <span class="ruby-ivar">@lastn</span> <span class="ruby-operator">||</span> <span class="ruby-value">120</span> )
313
+ 73: <span class="ruby-identifier">page</span> = <span class="ruby-constant">Page</span>.<span class="ruby-identifier">new</span>( <span class="ruby-value str">'recent/index'</span> )
314
+ 74: <span class="ruby-identifier">page</span>.<span class="ruby-identifier">timestamp</span> = <span class="ruby-identifier">index_entries</span>.<span class="ruby-identifier">first</span>.<span class="ruby-identifier">created</span>
315
+ 75: <span class="ruby-identifier">page</span>.<span class="ruby-identifier">updated</span> = <span class="ruby-identifier">storage</span>.<span class="ruby-identifier">last_updated</span>( <span class="ruby-identifier">index_entries</span> )
316
+ 76: <span class="ruby-keyword kw">yield</span> <span class="ruby-operator">:</span><span class="ruby-identifier">page</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">page</span>, <span class="ruby-identifier">:entries</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">index_entries</span>
317
+ 77: <span class="ruby-keyword kw">end</span>
318
+ </pre>
319
+ </div>
320
+ </div>
321
+ </div>
322
+
323
+ <div id="method-M000010" class="method-detail">
324
+ <a name="M000010"></a>
325
+
326
+ <div class="method-heading">
327
+ <a href="#M000010" class="method-signature">
328
+ <span class="method-name">skel_recent_index</span><span class="method-args">( path_storage, section_path ) {|:page =&gt; page, :entries =&gt; index_entries| ...}</span>
329
+ </a>
330
+ </div>
331
+
332
+ <div class="method-description">
333
+ <p>
334
+ Handler for templates with `list/index&#8217; prefix. These templates will
335
+ receive <a href="BixWik/IndexEntry.html">IndexEntry</a> objects for every
336
+ entry in the system. Only one index page is requested by this handler.
337
+ </p>
338
+ <p><a class="source-toggle" href="#"
339
+ onclick="toggleCode('M000010-source');return false;">[Source]</a></p>
340
+ <div class="method-source-code" id="M000010-source">
341
+ <pre>
342
+ <span class="ruby-comment cmt"># File lib/hobix/bixwik.rb, line 60</span>
343
+ 60: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">skel_recent_index</span>( <span class="ruby-identifier">path_storage</span>, <span class="ruby-identifier">section_path</span> )
344
+ 61: <span class="ruby-identifier">index_entries</span> = <span class="ruby-identifier">storage</span>.<span class="ruby-identifier">find</span>( <span class="ruby-identifier">:all</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">true</span> )
345
+ 62: <span class="ruby-identifier">page</span> = <span class="ruby-constant">Page</span>.<span class="ruby-identifier">new</span>( <span class="ruby-value str">'list/index'</span> )
346
+ 63: <span class="ruby-identifier">page</span>.<span class="ruby-identifier">timestamp</span> = <span class="ruby-identifier">index_entries</span>.<span class="ruby-identifier">first</span>.<span class="ruby-identifier">created</span>
347
+ 64: <span class="ruby-identifier">page</span>.<span class="ruby-identifier">updated</span> = <span class="ruby-identifier">storage</span>.<span class="ruby-identifier">last_updated</span>( <span class="ruby-identifier">index_entries</span> )
348
+ 65: <span class="ruby-keyword kw">yield</span> <span class="ruby-operator">:</span><span class="ruby-identifier">page</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">page</span>, <span class="ruby-identifier">:entries</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">index_entries</span>
349
+ 66: <span class="ruby-keyword kw">end</span>
350
+ </pre>
351
+ </div>
352
+ </div>
353
+ </div>
354
+
355
+ <div id="method-M000015" class="method-detail">
356
+ <a name="M000015"></a>
357
+
358
+ <div class="method-heading">
359
+ <a href="#M000015" class="method-signature">
360
+ <span class="method-name">wiki_link</span><span class="method-args">( word )</span>
361
+ </a>
362
+ </div>
363
+
364
+ <div class="method-description">
365
+ <p><a class="source-toggle" href="#"
366
+ onclick="toggleCode('M000015-source');return false;">[Source]</a></p>
367
+ <div class="method-source-code" id="M000015-source">
368
+ <pre>
369
+ <span class="ruby-comment cmt"># File lib/hobix/bixwik.rb, line 97</span>
370
+ 97: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">wiki_link</span>( <span class="ruby-identifier">word</span> )
371
+ 98: <span class="ruby-identifier">abs_link</span> = <span class="ruby-identifier">output_entry_map</span>[<span class="ruby-identifier">word</span>]
372
+ 99: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">abs_link</span>
373
+ 100: <span class="ruby-node">&quot;&lt;a class=\&quot;existingWikiWord\&quot; href=\&quot;#{ expand_path( abs_link[:page].link ) }\&quot;&gt;#{ Hobix::BixWik::wiki_word word }&lt;/a&gt;&quot;</span>
374
+ 101: <span class="ruby-keyword kw">else</span>
375
+ 102: <span class="ruby-node">&quot;&lt;span class=\&quot;newWikiWord\&quot;&gt;#{ Hobix::BixWik::wiki_word word }&lt;a href=\&quot;#{ expand_path( &quot;control/edit/#{ word }&quot; ) }\&quot;&gt;?&lt;/a&gt;&lt;/span&gt;&quot;</span>
376
+ 103: <span class="ruby-keyword kw">end</span>
377
+ 104: <span class="ruby-keyword kw">end</span>
378
+ </pre>
379
+ </div>
380
+ </div>
381
+ </div>
382
+
383
+ <div id="method-M000014" class="method-detail">
384
+ <a name="M000014"></a>
385
+
386
+ <div class="method-heading">
387
+ <a href="#M000014" class="method-signature">
388
+ <span class="method-name">wiki_page</span><span class="method-args">( src )</span>
389
+ </a>
390
+ </div>
391
+
392
+ <div class="method-description">
393
+ <p><a class="source-toggle" href="#"
394
+ onclick="toggleCode('M000014-source');return false;">[Source]</a></p>
395
+ <div class="method-source-code" id="M000014-source">
396
+ <pre>
397
+ <span class="ruby-comment cmt"># File lib/hobix/bixwik.rb, line 93</span>
398
+ 93: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">wiki_page</span>( <span class="ruby-identifier">src</span> )
399
+ 94: <span class="ruby-identifier">src</span>.<span class="ruby-identifier">gsub</span>( <span class="ruby-regexp re">/\b([A-Z][a-z]+[A-Z][\w\/]+)\b/</span> ) { <span class="ruby-identifier">wiki_link</span>( <span class="ruby-identifier">$1</span> ) }
400
+ 95: <span class="ruby-keyword kw">end</span>
401
+ </pre>
402
+ </div>
403
+ </div>
404
+ </div>
405
+
406
+
407
+ </div>
408
+
409
+
410
+ </div>
411
+
412
+
413
+ <div id="validator-badges">
414
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
415
+ </div>
416
+
417
+ </body>
418
+ </html>
@@ -0,0 +1,158 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: Hobix::BixWikPlugin</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">Hobix::BixWikPlugin</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/lib/hobix/bixwik_rb.html">
59
+ lib/hobix/bixwik.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ <a href="BasePlugin.html">
69
+ Hobix::BasePlugin
70
+ </a>
71
+ </td>
72
+ </tr>
73
+ </table>
74
+ </div>
75
+ <!-- banner header -->
76
+
77
+ <div id="bodyContent">
78
+
79
+
80
+
81
+ <div id="contextContent">
82
+
83
+ <div id="description">
84
+ <p>
85
+ The <a href="BixWik.html">BixWik</a> class is an extended <a
86
+ href="Weblog.html">Weblog</a>, which acts like a Wiki. (See <a
87
+ href="http://instiki.org">instiki.org</a>/ for inspiration.)
88
+ </p>
89
+
90
+ </div>
91
+
92
+
93
+ </div>
94
+
95
+ <div id="method-list">
96
+ <h3 class="section-bar">Methods</h3>
97
+
98
+ <div class="name-list">
99
+ <a href="#M000185">new</a>&nbsp;&nbsp;
100
+ </div>
101
+ </div>
102
+
103
+ </div>
104
+
105
+
106
+ <!-- if includes -->
107
+
108
+ <div id="section">
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+ <!-- if method_list -->
118
+ <div id="methods">
119
+ <h3 class="section-bar">Public Class methods</h3>
120
+
121
+ <div id="method-M000185" class="method-detail">
122
+ <a name="M000185"></a>
123
+
124
+ <div class="method-heading">
125
+ <a href="#M000185" class="method-signature">
126
+ <span class="method-name">new</span><span class="method-args">( weblog )</span>
127
+ </a>
128
+ </div>
129
+
130
+ <div class="method-description">
131
+ <p><a class="source-toggle" href="#"
132
+ onclick="toggleCode('M000185-source');return false;">[Source]</a></p>
133
+ <div class="method-source-code" id="M000185-source">
134
+ <pre>
135
+ <span class="ruby-comment cmt"># File lib/hobix/bixwik.rb, line 22</span>
136
+ 22: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>( <span class="ruby-identifier">weblog</span> )
137
+ 23: <span class="ruby-keyword kw">class</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">weblog</span>
138
+ 24: <span class="ruby-identifier">include</span> <span class="ruby-constant">Hobix</span><span class="ruby-operator">::</span><span class="ruby-constant">BixWik</span>
139
+ 25: <span class="ruby-keyword kw">end</span>
140
+ 26: <span class="ruby-keyword kw">end</span>
141
+ </pre>
142
+ </div>
143
+ </div>
144
+ </div>
145
+
146
+
147
+ </div>
148
+
149
+
150
+ </div>
151
+
152
+
153
+ <div id="validator-badges">
154
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
155
+ </div>
156
+
157
+ </body>
158
+ </html>