wee 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (157) hide show
  1. data/ChangeLog +132 -0
  2. data/INSTALL +13 -3
  3. data/README +3 -3
  4. data/Rakefile +5 -1
  5. data/bin/wee +100 -0
  6. data/doc/rdoc/classes/Array.html +12 -12
  7. data/doc/rdoc/classes/Cache/StorageCache.html +38 -38
  8. data/doc/rdoc/classes/Cache/Strategy/CapacityBounded.html +30 -30
  9. data/doc/rdoc/classes/Cache/Strategy/LFU.html +24 -24
  10. data/doc/rdoc/classes/Cache/Strategy/LRU.html +24 -24
  11. data/doc/rdoc/classes/Cache/Strategy/Unbounded.html +24 -24
  12. data/doc/rdoc/classes/Enumerable.html +6 -6
  13. data/doc/rdoc/classes/Main.html +265 -0
  14. data/doc/rdoc/classes/Object.html +12 -12
  15. data/doc/rdoc/classes/OgApplication.html +2 -2
  16. data/doc/rdoc/classes/OgScaffolder.html +444 -64
  17. data/doc/rdoc/classes/OgScaffolder/Editor.html +490 -0
  18. data/doc/rdoc/classes/OgSession.html +4 -4
  19. data/doc/rdoc/classes/Recipe.html +113 -0
  20. data/doc/rdoc/classes/String.html +12 -12
  21. data/doc/rdoc/classes/Struct.html +12 -12
  22. data/doc/rdoc/classes/Wee.html +10 -1
  23. data/doc/rdoc/classes/Wee/AnswerDecoration.html +9 -9
  24. data/doc/rdoc/classes/Wee/Application.html +48 -47
  25. data/doc/rdoc/classes/Wee/Brush.html +19 -23
  26. data/doc/rdoc/classes/Wee/Brush/AnchorTag.html +17 -14
  27. data/doc/rdoc/classes/Wee/Brush/FileUploadTag.html +20 -14
  28. data/doc/rdoc/classes/Wee/Brush/FormTag.html +25 -21
  29. data/doc/rdoc/classes/Wee/Brush/GenericEncodedTextBrush.html +12 -12
  30. data/doc/rdoc/classes/Wee/Brush/GenericSingleTagBrush.html +7 -7
  31. data/doc/rdoc/classes/Wee/Brush/GenericTagBrush.html +234 -100
  32. data/doc/rdoc/classes/Wee/Brush/GenericTextBrush.html +12 -12
  33. data/doc/rdoc/classes/Wee/Brush/ImageButtonTag.html +28 -22
  34. data/doc/rdoc/classes/Wee/Brush/ImageTag.html +23 -24
  35. data/doc/rdoc/classes/Wee/Brush/InputTag.html +14 -14
  36. data/doc/rdoc/classes/Wee/Brush/JavascriptTag.html +7 -7
  37. data/doc/rdoc/classes/Wee/Brush/Page.html +14 -14
  38. data/doc/rdoc/classes/Wee/Brush/SelectListTag.html +33 -57
  39. data/doc/rdoc/classes/Wee/Brush/SelectListTag/SelectListCallback.html +154 -0
  40. data/doc/rdoc/classes/Wee/Brush/SelectOptionTag.html +7 -7
  41. data/doc/rdoc/classes/Wee/Brush/SubmitButtonTag.html +20 -14
  42. data/doc/rdoc/classes/Wee/Brush/TableDataTag.html +14 -14
  43. data/doc/rdoc/classes/Wee/Brush/TableHeaderTag.html +7 -7
  44. data/doc/rdoc/classes/Wee/Brush/TableRowTag.html +42 -42
  45. data/doc/rdoc/classes/Wee/Brush/TableTag.html +7 -7
  46. data/doc/rdoc/classes/Wee/Brush/TextAreaTag.html +27 -21
  47. data/doc/rdoc/classes/Wee/Brush/TextInputTag.html +20 -14
  48. data/doc/rdoc/classes/Wee/CallbackRegistry.html +64 -36
  49. data/doc/rdoc/classes/Wee/CallbackStream.html +21 -21
  50. data/doc/rdoc/classes/Wee/Canvas.html +24 -24
  51. data/doc/rdoc/classes/Wee/Component.html +179 -151
  52. data/doc/rdoc/classes/Wee/Component/OnAnswer.html +12 -12
  53. data/doc/rdoc/classes/Wee/Decoration.html +42 -42
  54. data/doc/rdoc/classes/Wee/Delegate.html +27 -27
  55. data/doc/rdoc/classes/Wee/ErrorResponse.html +14 -14
  56. data/doc/rdoc/classes/Wee/FormDecoration.html +6 -6
  57. data/doc/rdoc/classes/Wee/GenericResponse.html +7 -7
  58. data/doc/rdoc/classes/Wee/HtmlCanvas.html +326 -219
  59. data/doc/rdoc/classes/Wee/HtmlWriter.html +40 -40
  60. data/doc/rdoc/classes/Wee/LiteralMethodCallback.html +19 -19
  61. data/doc/rdoc/classes/Wee/Md5IdGenerator.html +181 -0
  62. data/doc/rdoc/classes/Wee/MessageBox.html +12 -12
  63. data/doc/rdoc/classes/Wee/PageDecoration.html +18 -18
  64. data/doc/rdoc/classes/Wee/PagelessApplication.html +152 -0
  65. data/doc/rdoc/classes/Wee/PagelessRequest.html +177 -0
  66. data/doc/rdoc/classes/Wee/PagelessSession.html +320 -0
  67. data/doc/rdoc/classes/Wee/Presenter.html +145 -89
  68. data/doc/rdoc/classes/Wee/RedirectResponse.html +7 -7
  69. data/doc/rdoc/classes/Wee/RefreshResponse.html +7 -7
  70. data/doc/rdoc/classes/Wee/Request.html +116 -50
  71. data/doc/rdoc/classes/Wee/RequestHandler.html +31 -31
  72. data/doc/rdoc/classes/Wee/Response.html +76 -28
  73. data/doc/rdoc/classes/Wee/Session.html +129 -506
  74. data/doc/rdoc/classes/Wee/SimpleIdGenerator.html +22 -40
  75. data/doc/rdoc/classes/Wee/Snapshot.html +19 -19
  76. data/doc/rdoc/classes/Wee/Utils.html +70 -17
  77. data/doc/rdoc/classes/Wee/Utils/LRUCache.html +6 -6
  78. data/doc/rdoc/classes/Wee/ValueHolder.html +18 -18
  79. data/doc/rdoc/classes/Wee/WEBrickAdaptor.html +82 -49
  80. data/doc/rdoc/classes/Wee/WrapperDecoration.html +6 -6
  81. data/doc/rdoc/created.rid +1 -1
  82. data/doc/rdoc/files/INSTALL.html +17 -5
  83. data/doc/rdoc/files/README.html +9 -11
  84. data/doc/rdoc/files/lib/wee/adaptors/webrick_rb.html +1 -1
  85. data/doc/rdoc/files/lib/wee/application_rb.html +1 -1
  86. data/doc/rdoc/files/lib/wee/components/page_decoration_rb.html +1 -1
  87. data/doc/rdoc/files/lib/wee/continuation/session_rb.html +1 -3
  88. data/doc/rdoc/files/lib/wee/core/callback_rb.html +1 -1
  89. data/doc/rdoc/files/lib/wee/core/component_rb.html +1 -1
  90. data/doc/rdoc/files/lib/wee/core_rb.html +3 -3
  91. data/doc/rdoc/files/lib/wee/databases/og/application_rb.html +101 -0
  92. data/doc/rdoc/files/lib/wee/databases/og/old_scaffolder_rb.html +101 -0
  93. data/doc/rdoc/files/lib/wee/databases/og/scaffolder_rb.html +108 -0
  94. data/doc/rdoc/files/lib/wee/databases/og/session_rb.html +101 -0
  95. data/doc/rdoc/files/lib/wee/databases/og_rb.html +4 -1
  96. data/doc/rdoc/files/lib/wee/idgen/md5_rb.html +115 -0
  97. data/doc/rdoc/files/lib/wee/idgen/simple_rb.html +107 -0
  98. data/doc/rdoc/files/lib/wee/pageless/application_rb.html +101 -0
  99. data/doc/rdoc/files/lib/wee/pageless/request_rb.html +101 -0
  100. data/doc/rdoc/files/lib/wee/pageless/session_rb.html +108 -0
  101. data/doc/rdoc/files/lib/wee/pageless_rb.html +110 -0
  102. data/doc/rdoc/files/lib/wee/renderer/html/brushes_rb.html +1 -1
  103. data/doc/rdoc/files/lib/wee/renderer/html/canvas_rb.html +8 -1
  104. data/doc/rdoc/files/lib/wee/request_rb.html +1 -1
  105. data/doc/rdoc/files/lib/wee/response_rb.html +1 -1
  106. data/doc/rdoc/files/lib/wee/session_rb.html +1 -1
  107. data/doc/rdoc/files/lib/wee/skeleton/og/components/main_rb.html +101 -0
  108. data/doc/rdoc/files/lib/wee/skeleton/og/conf/db_rb.html +114 -0
  109. data/doc/rdoc/files/lib/wee/skeleton/og/models/recipe_rb.html +101 -0
  110. data/doc/rdoc/files/lib/wee/skeleton/og/run_rb.html +115 -0
  111. data/doc/rdoc/files/lib/wee/skeleton/simple/components/main_rb.html +101 -0
  112. data/doc/rdoc/files/lib/wee/skeleton/simple/run_rb.html +111 -0
  113. data/doc/rdoc/files/lib/wee/template_rb.html +101 -0
  114. data/doc/rdoc/files/lib/wee/utils/autoreload_rb.html +1 -1
  115. data/doc/rdoc/files/lib/wee/utils/helper_rb.html +1 -1
  116. data/doc/rdoc/files/lib/wee_rb.html +4 -2
  117. data/doc/rdoc/fr_class_index.html +8 -4
  118. data/doc/rdoc/fr_file_index.html +17 -1
  119. data/doc/rdoc/fr_method_index.html +312 -267
  120. data/examples/live-update.rb +1 -1
  121. data/install.rb +14 -0
  122. data/lib/wee.rb +6 -2
  123. data/lib/wee/adaptors/webrick.rb +17 -5
  124. data/lib/wee/application.rb +2 -1
  125. data/lib/wee/continuation/session.rb +1 -146
  126. data/lib/wee/core/callback.rb +11 -5
  127. data/lib/wee/core/component.rb +14 -10
  128. data/lib/wee/databases/og.rb +3 -113
  129. data/lib/wee/databases/og/application.rb +3 -0
  130. data/lib/wee/databases/og/old_scaffolder.rb +98 -0
  131. data/lib/wee/databases/og/scaffolder.rb +174 -0
  132. data/lib/wee/databases/og/session.rb +9 -0
  133. data/lib/wee/idgen/md5.rb +21 -0
  134. data/lib/wee/{idgen.rb → idgen/simple.rb} +2 -4
  135. data/lib/wee/pageless.rb +3 -0
  136. data/lib/wee/pageless/application.rb +9 -0
  137. data/lib/wee/pageless/request.rb +15 -0
  138. data/lib/wee/pageless/session.rb +89 -0
  139. data/lib/wee/renderer/html/brushes.rb +100 -115
  140. data/lib/wee/renderer/html/canvas.rb +32 -2
  141. data/lib/wee/request.rb +36 -24
  142. data/lib/wee/response.rb +8 -1
  143. data/lib/wee/session.rb +13 -7
  144. data/lib/wee/skeleton/og/README +38 -0
  145. data/lib/wee/skeleton/og/components/main.rb +16 -0
  146. data/lib/wee/skeleton/og/conf/db.rb +8 -0
  147. data/lib/wee/skeleton/og/models/recipe.rb +5 -0
  148. data/lib/wee/skeleton/og/run.rb +23 -0
  149. data/lib/wee/skeleton/simple/README +32 -0
  150. data/lib/wee/skeleton/simple/components/main.rb +25 -0
  151. data/lib/wee/skeleton/simple/run.rb +12 -0
  152. data/lib/wee/template.rb +28 -0
  153. data/lib/wee/utils/autoreload.rb +29 -0
  154. data/lib/wee/utils/helper.rb +9 -5
  155. data/test/test_request.rb +4 -3
  156. data/wee.gemspec +3 -1
  157. metadata +91 -22
@@ -88,7 +88,7 @@
88
88
  <h3 class="section-bar">Methods</h3>
89
89
 
90
90
  <div class="name-list">
91
- <a href="#M000054">render_wrapper</a>&nbsp;&nbsp;
91
+ <a href="#M000089">render_wrapper</a>&nbsp;&nbsp;
92
92
  </div>
93
93
  </div>
94
94
 
@@ -110,19 +110,19 @@
110
110
  <div id="methods">
111
111
  <h3 class="section-bar">Private Instance methods</h3>
112
112
 
113
- <div id="method-M000054" class="method-detail">
114
- <a name="M000054"></a>
113
+ <div id="method-M000089" class="method-detail">
114
+ <a name="M000089"></a>
115
115
 
116
116
  <div class="method-heading">
117
- <a href="#M000054" class="method-signature">
117
+ <a href="#M000089" class="method-signature">
118
118
  <span class="method-name">render_wrapper</span><span class="method-args">() {|| ...}</span>
119
119
  </a>
120
120
  </div>
121
121
 
122
122
  <div class="method-description">
123
123
  <p><a class="source-toggle" href="#"
124
- onclick="toggleCode('M000054-source');return false;">[Source]</a></p>
125
- <div class="method-source-code" id="M000054-source">
124
+ onclick="toggleCode('M000089-source');return false;">[Source]</a></p>
125
+ <div class="method-source-code" id="M000089-source">
126
126
  <pre>
127
127
  <span class="ruby-comment cmt"># File lib/wee/components/form_decoration.rb, line 4</span>
128
128
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">render_wrapper</span>
@@ -88,7 +88,7 @@
88
88
  <h3 class="section-bar">Methods</h3>
89
89
 
90
90
  <div class="name-list">
91
- <a href="#M000055">new</a>&nbsp;&nbsp;
91
+ <a href="#M000090">new</a>&nbsp;&nbsp;
92
92
  </div>
93
93
  </div>
94
94
 
@@ -123,21 +123,21 @@
123
123
  <div id="methods">
124
124
  <h3 class="section-bar">Public Class methods</h3>
125
125
 
126
- <div id="method-M000055" class="method-detail">
127
- <a name="M000055"></a>
126
+ <div id="method-M000090" class="method-detail">
127
+ <a name="M000090"></a>
128
128
 
129
129
  <div class="method-heading">
130
- <a href="#M000055" class="method-signature">
130
+ <a href="#M000090" class="method-signature">
131
131
  <span class="method-name">new</span><span class="method-args">(mime_type = 'text/html', content='')</span>
132
132
  </a>
133
133
  </div>
134
134
 
135
135
  <div class="method-description">
136
136
  <p><a class="source-toggle" href="#"
137
- onclick="toggleCode('M000055-source');return false;">[Source]</a></p>
138
- <div class="method-source-code" id="M000055-source">
137
+ onclick="toggleCode('M000090-source');return false;">[Source]</a></p>
138
+ <div class="method-source-code" id="M000090-source">
139
139
  <pre>
140
- <span class="ruby-comment cmt"># File lib/wee/response.rb, line 33</span>
140
+ <span class="ruby-comment cmt"># File lib/wee/response.rb, line 40</span>
141
141
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">mime_type</span> = <span class="ruby-value str">'text/html'</span>, <span class="ruby-identifier">content</span>=<span class="ruby-value str">''</span>)
142
142
  <span class="ruby-keyword kw">super</span>
143
143
  <span class="ruby-ivar">@header</span>[<span class="ruby-value str">'Expires'</span>] = (<span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span> <span class="ruby-operator">+</span> <span class="ruby-constant">EXPIRE_OFFSET</span>).<span class="ruby-identifier">rfc822</span>
@@ -88,38 +88,42 @@
88
88
  <h3 class="section-bar">Methods</h3>
89
89
 
90
90
  <div class="name-list">
91
- <a href="#M000086">&lt;&lt;</a>&nbsp;&nbsp;
92
- <a href="#M000077">anchor</a>&nbsp;&nbsp;
93
- <a href="#M000079">bold</a>&nbsp;&nbsp;
94
- <a href="#M000082">break</a>&nbsp;&nbsp;
95
- <a href="#M000087">encode_text</a>&nbsp;&nbsp;
96
- <a href="#M000075">file_upload</a>&nbsp;&nbsp;
97
- <a href="#M000067">form</a>&nbsp;&nbsp;
98
- <a href="#M000059">generic_single_tag</a>&nbsp;&nbsp;
99
- <a href="#M000058">generic_tag</a>&nbsp;&nbsp;
100
- <a href="#M000089">handle</a>&nbsp;&nbsp;
101
- <a href="#M000083">image</a>&nbsp;&nbsp;
102
- <a href="#M000074">image_button</a>&nbsp;&nbsp;
103
- <a href="#M000068">input</a>&nbsp;&nbsp;
104
- <a href="#M000080">javascript</a>&nbsp;&nbsp;
105
- <a href="#M000084">link_css</a>&nbsp;&nbsp;
106
- <a href="#M000060">new</a>&nbsp;&nbsp;
107
- <a href="#M000071">option</a>&nbsp;&nbsp;
108
- <a href="#M000076">page</a>&nbsp;&nbsp;
109
- <a href="#M000081">paragraph</a>&nbsp;&nbsp;
110
- <a href="#M000062">register_callback</a>&nbsp;&nbsp;
111
- <a href="#M000088">render</a>&nbsp;&nbsp;
112
- <a href="#M000072">select_list</a>&nbsp;&nbsp;
113
- <a href="#M000078">space</a>&nbsp;&nbsp;
114
- <a href="#M000073">submit_button</a>&nbsp;&nbsp;
115
- <a href="#M000063">table</a>&nbsp;&nbsp;
116
- <a href="#M000065">table_data</a>&nbsp;&nbsp;
117
- <a href="#M000066">table_header</a>&nbsp;&nbsp;
118
- <a href="#M000064">table_row</a>&nbsp;&nbsp;
119
- <a href="#M000085">text</a>&nbsp;&nbsp;
120
- <a href="#M000070">text_area</a>&nbsp;&nbsp;
121
- <a href="#M000069">text_input</a>&nbsp;&nbsp;
122
- <a href="#M000061">url_for_callback</a>&nbsp;&nbsp;
91
+ <a href="#M000128">&lt;&lt;</a>&nbsp;&nbsp;
92
+ <a href="#M000119">anchor</a>&nbsp;&nbsp;
93
+ <a href="#M000121">bold</a>&nbsp;&nbsp;
94
+ <a href="#M000124">break</a>&nbsp;&nbsp;
95
+ <a href="#M000129">encode_text</a>&nbsp;&nbsp;
96
+ <a href="#M000117">file_upload</a>&nbsp;&nbsp;
97
+ <a href="#M000109">form</a>&nbsp;&nbsp;
98
+ <a href="#M000098">generic_single_tag</a>&nbsp;&nbsp;
99
+ <a href="#M000097">generic_tag</a>&nbsp;&nbsp;
100
+ <a href="#M000132">handle</a>&nbsp;&nbsp;
101
+ <a href="#M000125">image</a>&nbsp;&nbsp;
102
+ <a href="#M000116">image_button</a>&nbsp;&nbsp;
103
+ <a href="#M000110">input</a>&nbsp;&nbsp;
104
+ <a href="#M000122">javascript</a>&nbsp;&nbsp;
105
+ <a href="#M000126">link_css</a>&nbsp;&nbsp;
106
+ <a href="#M000099">new</a>&nbsp;&nbsp;
107
+ <a href="#M000113">option</a>&nbsp;&nbsp;
108
+ <a href="#M000118">page</a>&nbsp;&nbsp;
109
+ <a href="#M000123">paragraph</a>&nbsp;&nbsp;
110
+ <a href="#M000103">register_callback</a>&nbsp;&nbsp;
111
+ <a href="#M000104">register_named_callback</a>&nbsp;&nbsp;
112
+ <a href="#M000130">render</a>&nbsp;&nbsp;
113
+ <a href="#M000114">select_list</a>&nbsp;&nbsp;
114
+ <a href="#M000120">space</a>&nbsp;&nbsp;
115
+ <a href="#M000115">submit_button</a>&nbsp;&nbsp;
116
+ <a href="#M000105">table</a>&nbsp;&nbsp;
117
+ <a href="#M000107">table_data</a>&nbsp;&nbsp;
118
+ <a href="#M000108">table_header</a>&nbsp;&nbsp;
119
+ <a href="#M000106">table_row</a>&nbsp;&nbsp;
120
+ <a href="#M000131">template</a>&nbsp;&nbsp;
121
+ <a href="#M000127">text</a>&nbsp;&nbsp;
122
+ <a href="#M000112">text_area</a>&nbsp;&nbsp;
123
+ <a href="#M000111">text_input</a>&nbsp;&nbsp;
124
+ <a href="#M000100">url_for_callback</a>&nbsp;&nbsp;
125
+ <a href="#M000102">url_for_callback_id</a>&nbsp;&nbsp;
126
+ <a href="#M000101">url_for_named_callback</a>&nbsp;&nbsp;
123
127
  </div>
124
128
  </div>
125
129
 
@@ -164,19 +168,19 @@
164
168
  <div id="methods">
165
169
  <h3 class="section-bar">Public Class methods</h3>
166
170
 
167
- <div id="method-M000059" class="method-detail">
168
- <a name="M000059"></a>
171
+ <div id="method-M000098" class="method-detail">
172
+ <a name="M000098"></a>
169
173
 
170
174
  <div class="method-heading">
171
- <a href="#M000059" class="method-signature">
175
+ <a href="#M000098" class="method-signature">
172
176
  <span class="method-name">generic_single_tag</span><span class="method-args">(*attrs)</span>
173
177
  </a>
174
178
  </div>
175
179
 
176
180
  <div class="method-description">
177
181
  <p><a class="source-toggle" href="#"
178
- onclick="toggleCode('M000059-source');return false;">[Source]</a></p>
179
- <div class="method-source-code" id="M000059-source">
182
+ onclick="toggleCode('M000098-source');return false;">[Source]</a></p>
183
+ <div class="method-source-code" id="M000098-source">
180
184
  <pre>
181
185
  <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 49</span>
182
186
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">generic_single_tag</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">attrs</span>)
@@ -193,19 +197,19 @@
193
197
  </div>
194
198
  </div>
195
199
 
196
- <div id="method-M000058" class="method-detail">
197
- <a name="M000058"></a>
200
+ <div id="method-M000097" class="method-detail">
201
+ <a name="M000097"></a>
198
202
 
199
203
  <div class="method-heading">
200
- <a href="#M000058" class="method-signature">
204
+ <a href="#M000097" class="method-signature">
201
205
  <span class="method-name">generic_tag</span><span class="method-args">(*attrs)</span>
202
206
  </a>
203
207
  </div>
204
208
 
205
209
  <div class="method-description">
206
210
  <p><a class="source-toggle" href="#"
207
- onclick="toggleCode('M000058-source');return false;">[Source]</a></p>
208
- <div class="method-source-code" id="M000058-source">
211
+ onclick="toggleCode('M000097-source');return false;">[Source]</a></p>
212
+ <div class="method-source-code" id="M000097-source">
209
213
  <pre>
210
214
  <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 39</span>
211
215
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">generic_tag</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">attrs</span>)
@@ -222,19 +226,19 @@
222
226
  </div>
223
227
  </div>
224
228
 
225
- <div id="method-M000060" class="method-detail">
226
- <a name="M000060"></a>
229
+ <div id="method-M000099" class="method-detail">
230
+ <a name="M000099"></a>
227
231
 
228
232
  <div class="method-heading">
229
- <a href="#M000060" class="method-signature">
233
+ <a href="#M000099" class="method-signature">
230
234
  <span class="method-name">new</span><span class="method-args">(rendering_context)</span>
231
235
  </a>
232
236
  </div>
233
237
 
234
238
  <div class="method-description">
235
239
  <p><a class="source-toggle" href="#"
236
- onclick="toggleCode('M000060-source');return false;">[Source]</a></p>
237
- <div class="method-source-code" id="M000060-source">
240
+ onclick="toggleCode('M000099-source');return false;">[Source]</a></p>
241
+ <div class="method-source-code" id="M000099-source">
238
242
  <pre>
239
243
  <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 59</span>
240
244
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">rendering_context</span>)
@@ -249,8 +253,8 @@
249
253
 
250
254
  <h3 class="section-bar">Public Instance methods</h3>
251
255
 
252
- <div id="method-M000086" class="method-detail">
253
- <a name="M000086"></a>
256
+ <div id="method-M000128" class="method-detail">
257
+ <a name="M000128"></a>
254
258
 
255
259
  <div class="method-heading">
256
260
  <span class="method-name">&lt;&lt;</span><span class="method-args">(str)</span>
@@ -258,26 +262,26 @@
258
262
 
259
263
  <div class="method-description">
260
264
  <p>
261
- Alias for <a href="HtmlCanvas.html#M000085">text</a>
265
+ Alias for <a href="HtmlCanvas.html#M000127">text</a>
262
266
  </p>
263
267
  </div>
264
268
  </div>
265
269
 
266
- <div id="method-M000077" class="method-detail">
267
- <a name="M000077"></a>
270
+ <div id="method-M000119" class="method-detail">
271
+ <a name="M000119"></a>
268
272
 
269
273
  <div class="method-heading">
270
- <a href="#M000077" class="method-signature">
274
+ <a href="#M000119" class="method-signature">
271
275
  <span class="method-name">anchor</span><span class="method-args">(*args, &amp;block)</span>
272
276
  </a>
273
277
  </div>
274
278
 
275
279
  <div class="method-description">
276
280
  <p><a class="source-toggle" href="#"
277
- onclick="toggleCode('M000077-source');return false;">[Source]</a></p>
278
- <div class="method-source-code" id="M000077-source">
281
+ onclick="toggleCode('M000119-source');return false;">[Source]</a></p>
282
+ <div class="method-source-code" id="M000119-source">
279
283
  <pre>
280
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 134</span>
284
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 147</span>
281
285
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">anchor</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
282
286
  <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">AnchorTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
283
287
  <span class="ruby-keyword kw">end</span>
@@ -286,21 +290,21 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
286
290
  </div>
287
291
  </div>
288
292
 
289
- <div id="method-M000079" class="method-detail">
290
- <a name="M000079"></a>
293
+ <div id="method-M000121" class="method-detail">
294
+ <a name="M000121"></a>
291
295
 
292
296
  <div class="method-heading">
293
- <a href="#M000079" class="method-signature">
297
+ <a href="#M000121" class="method-signature">
294
298
  <span class="method-name">bold</span><span class="method-args">(*args, &amp;block)</span>
295
299
  </a>
296
300
  </div>
297
301
 
298
302
  <div class="method-description">
299
303
  <p><a class="source-toggle" href="#"
300
- onclick="toggleCode('M000079-source');return false;">[Source]</a></p>
301
- <div class="method-source-code" id="M000079-source">
304
+ onclick="toggleCode('M000121-source');return false;">[Source]</a></p>
305
+ <div class="method-source-code" id="M000121-source">
302
306
  <pre>
303
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 142</span>
307
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 155</span>
304
308
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">bold</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
305
309
  <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericTagBrush</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">&quot;b&quot;</span>), <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
306
310
  <span class="ruby-keyword kw">end</span>
@@ -309,21 +313,21 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
309
313
  </div>
310
314
  </div>
311
315
 
312
- <div id="method-M000082" class="method-detail">
313
- <a name="M000082"></a>
316
+ <div id="method-M000124" class="method-detail">
317
+ <a name="M000124"></a>
314
318
 
315
319
  <div class="method-heading">
316
- <a href="#M000082" class="method-signature">
320
+ <a href="#M000124" class="method-signature">
317
321
  <span class="method-name">break</span><span class="method-args">()</span>
318
322
  </a>
319
323
  </div>
320
324
 
321
325
  <div class="method-description">
322
326
  <p><a class="source-toggle" href="#"
323
- onclick="toggleCode('M000082-source');return false;">[Source]</a></p>
324
- <div class="method-source-code" id="M000082-source">
327
+ onclick="toggleCode('M000124-source');return false;">[Source]</a></p>
328
+ <div class="method-source-code" id="M000124-source">
325
329
  <pre>
326
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 154</span>
330
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 167</span>
327
331
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">break</span>
328
332
  <span class="ruby-identifier">set_brush</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericSingleTagBrush</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">&quot;br&quot;</span>))
329
333
  <span class="ruby-keyword kw">end</span>
@@ -332,21 +336,21 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
332
336
  </div>
333
337
  </div>
334
338
 
335
- <div id="method-M000087" class="method-detail">
336
- <a name="M000087"></a>
339
+ <div id="method-M000129" class="method-detail">
340
+ <a name="M000129"></a>
337
341
 
338
342
  <div class="method-heading">
339
- <a href="#M000087" class="method-signature">
343
+ <a href="#M000129" class="method-signature">
340
344
  <span class="method-name">encode_text</span><span class="method-args">(str)</span>
341
345
  </a>
342
346
  </div>
343
347
 
344
348
  <div class="method-description">
345
349
  <p><a class="source-toggle" href="#"
346
- onclick="toggleCode('M000087-source');return false;">[Source]</a></p>
347
- <div class="method-source-code" id="M000087-source">
350
+ onclick="toggleCode('M000129-source');return false;">[Source]</a></p>
351
+ <div class="method-source-code" id="M000129-source">
348
352
  <pre>
349
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 171</span>
353
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 184</span>
350
354
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">encode_text</span>(<span class="ruby-identifier">str</span>)
351
355
  <span class="ruby-identifier">set_brush</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericEncodedTextBrush</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">str</span>))
352
356
  <span class="ruby-keyword kw">end</span>
@@ -355,21 +359,21 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
355
359
  </div>
356
360
  </div>
357
361
 
358
- <div id="method-M000075" class="method-detail">
359
- <a name="M000075"></a>
362
+ <div id="method-M000117" class="method-detail">
363
+ <a name="M000117"></a>
360
364
 
361
365
  <div class="method-heading">
362
- <a href="#M000075" class="method-signature">
366
+ <a href="#M000117" class="method-signature">
363
367
  <span class="method-name">file_upload</span><span class="method-args">(*args, &amp;block)</span>
364
368
  </a>
365
369
  </div>
366
370
 
367
371
  <div class="method-description">
368
372
  <p><a class="source-toggle" href="#"
369
- onclick="toggleCode('M000075-source');return false;">[Source]</a></p>
370
- <div class="method-source-code" id="M000075-source">
373
+ onclick="toggleCode('M000117-source');return false;">[Source]</a></p>
374
+ <div class="method-source-code" id="M000117-source">
371
375
  <pre>
372
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 126</span>
376
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 139</span>
373
377
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">file_upload</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
374
378
  <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Wee</span><span class="ruby-operator">::</span><span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">FileUploadTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
375
379
  <span class="ruby-keyword kw">end</span>
@@ -378,21 +382,21 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
378
382
  </div>
379
383
  </div>
380
384
 
381
- <div id="method-M000067" class="method-detail">
382
- <a name="M000067"></a>
385
+ <div id="method-M000109" class="method-detail">
386
+ <a name="M000109"></a>
383
387
 
384
388
  <div class="method-heading">
385
- <a href="#M000067" class="method-signature">
389
+ <a href="#M000109" class="method-signature">
386
390
  <span class="method-name">form</span><span class="method-args">(*args, &amp;block)</span>
387
391
  </a>
388
392
  </div>
389
393
 
390
394
  <div class="method-description">
391
395
  <p><a class="source-toggle" href="#"
392
- onclick="toggleCode('M000067-source');return false;">[Source]</a></p>
393
- <div class="method-source-code" id="M000067-source">
396
+ onclick="toggleCode('M000109-source');return false;">[Source]</a></p>
397
+ <div class="method-source-code" id="M000109-source">
394
398
  <pre>
395
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 94</span>
399
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 107</span>
396
400
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">form</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
397
401
  <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">FormTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
398
402
  <span class="ruby-keyword kw">end</span>
@@ -401,21 +405,21 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
401
405
  </div>
402
406
  </div>
403
407
 
404
- <div id="method-M000083" class="method-detail">
405
- <a name="M000083"></a>
408
+ <div id="method-M000125" class="method-detail">
409
+ <a name="M000125"></a>
406
410
 
407
411
  <div class="method-heading">
408
- <a href="#M000083" class="method-signature">
412
+ <a href="#M000125" class="method-signature">
409
413
  <span class="method-name">image</span><span class="method-args">()</span>
410
414
  </a>
411
415
  </div>
412
416
 
413
417
  <div class="method-description">
414
418
  <p><a class="source-toggle" href="#"
415
- onclick="toggleCode('M000083-source');return false;">[Source]</a></p>
416
- <div class="method-source-code" id="M000083-source">
419
+ onclick="toggleCode('M000125-source');return false;">[Source]</a></p>
420
+ <div class="method-source-code" id="M000125-source">
417
421
  <pre>
418
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 158</span>
422
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 171</span>
419
423
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">image</span>
420
424
  <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">ImageTag</span>.<span class="ruby-identifier">new</span>)
421
425
  <span class="ruby-keyword kw">end</span>
@@ -424,21 +428,21 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
424
428
  </div>
425
429
  </div>
426
430
 
427
- <div id="method-M000074" class="method-detail">
428
- <a name="M000074"></a>
431
+ <div id="method-M000116" class="method-detail">
432
+ <a name="M000116"></a>
429
433
 
430
434
  <div class="method-heading">
431
- <a href="#M000074" class="method-signature">
435
+ <a href="#M000116" class="method-signature">
432
436
  <span class="method-name">image_button</span><span class="method-args">(*args, &amp;block)</span>
433
437
  </a>
434
438
  </div>
435
439
 
436
440
  <div class="method-description">
437
441
  <p><a class="source-toggle" href="#"
438
- onclick="toggleCode('M000074-source');return false;">[Source]</a></p>
439
- <div class="method-source-code" id="M000074-source">
442
+ onclick="toggleCode('M000116-source');return false;">[Source]</a></p>
443
+ <div class="method-source-code" id="M000116-source">
440
444
  <pre>
441
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 122</span>
445
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 135</span>
442
446
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">image_button</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
443
447
  <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Wee</span><span class="ruby-operator">::</span><span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">ImageButtonTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
444
448
  <span class="ruby-keyword kw">end</span>
@@ -447,21 +451,21 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
447
451
  </div>
448
452
  </div>
449
453
 
450
- <div id="method-M000068" class="method-detail">
451
- <a name="M000068"></a>
454
+ <div id="method-M000110" class="method-detail">
455
+ <a name="M000110"></a>
452
456
 
453
457
  <div class="method-heading">
454
- <a href="#M000068" class="method-signature">
458
+ <a href="#M000110" class="method-signature">
455
459
  <span class="method-name">input</span><span class="method-args">(*args, &amp;block)</span>
456
460
  </a>
457
461
  </div>
458
462
 
459
463
  <div class="method-description">
460
464
  <p><a class="source-toggle" href="#"
461
- onclick="toggleCode('M000068-source');return false;">[Source]</a></p>
462
- <div class="method-source-code" id="M000068-source">
465
+ onclick="toggleCode('M000110-source');return false;">[Source]</a></p>
466
+ <div class="method-source-code" id="M000110-source">
463
467
  <pre>
464
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 98</span>
468
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 111</span>
465
469
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">input</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
466
470
  <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">InputTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
467
471
  <span class="ruby-keyword kw">end</span>
@@ -470,21 +474,21 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
470
474
  </div>
471
475
  </div>
472
476
 
473
- <div id="method-M000080" class="method-detail">
474
- <a name="M000080"></a>
477
+ <div id="method-M000122" class="method-detail">
478
+ <a name="M000122"></a>
475
479
 
476
480
  <div class="method-heading">
477
- <a href="#M000080" class="method-signature">
481
+ <a href="#M000122" class="method-signature">
478
482
  <span class="method-name">javascript</span><span class="method-args">(*args, &amp;block)</span>
479
483
  </a>
480
484
  </div>
481
485
 
482
486
  <div class="method-description">
483
487
  <p><a class="source-toggle" href="#"
484
- onclick="toggleCode('M000080-source');return false;">[Source]</a></p>
485
- <div class="method-source-code" id="M000080-source">
488
+ onclick="toggleCode('M000122-source');return false;">[Source]</a></p>
489
+ <div class="method-source-code" id="M000122-source">
486
490
  <pre>
487
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 146</span>
491
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 159</span>
488
492
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">javascript</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
489
493
  <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">JavascriptTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
490
494
  <span class="ruby-keyword kw">end</span>
@@ -493,21 +497,21 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
493
497
  </div>
494
498
  </div>
495
499
 
496
- <div id="method-M000084" class="method-detail">
497
- <a name="M000084"></a>
500
+ <div id="method-M000126" class="method-detail">
501
+ <a name="M000126"></a>
498
502
 
499
503
  <div class="method-heading">
500
- <a href="#M000084" class="method-signature">
504
+ <a href="#M000126" class="method-signature">
501
505
  <span class="method-name">link_css</span><span class="method-args">(url)</span>
502
506
  </a>
503
507
  </div>
504
508
 
505
509
  <div class="method-description">
506
510
  <p><a class="source-toggle" href="#"
507
- onclick="toggleCode('M000084-source');return false;">[Source]</a></p>
508
- <div class="method-source-code" id="M000084-source">
511
+ onclick="toggleCode('M000126-source');return false;">[Source]</a></p>
512
+ <div class="method-source-code" id="M000126-source">
509
513
  <pre>
510
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 162</span>
514
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 175</span>
511
515
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">link_css</span>(<span class="ruby-identifier">url</span>)
512
516
  <span class="ruby-identifier">link</span>.<span class="ruby-identifier">type</span>(<span class="ruby-value str">'text/css'</span>).<span class="ruby-identifier">rel</span>(<span class="ruby-value str">'stylesheet'</span>).<span class="ruby-identifier">href</span>(<span class="ruby-identifier">url</span>)
513
517
  <span class="ruby-keyword kw">end</span>
@@ -516,21 +520,21 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
516
520
  </div>
517
521
  </div>
518
522
 
519
- <div id="method-M000071" class="method-detail">
520
- <a name="M000071"></a>
523
+ <div id="method-M000113" class="method-detail">
524
+ <a name="M000113"></a>
521
525
 
522
526
  <div class="method-heading">
523
- <a href="#M000071" class="method-signature">
527
+ <a href="#M000113" class="method-signature">
524
528
  <span class="method-name">option</span><span class="method-args">(*args, &amp;block)</span>
525
529
  </a>
526
530
  </div>
527
531
 
528
532
  <div class="method-description">
529
533
  <p><a class="source-toggle" href="#"
530
- onclick="toggleCode('M000071-source');return false;">[Source]</a></p>
531
- <div class="method-source-code" id="M000071-source">
534
+ onclick="toggleCode('M000113-source');return false;">[Source]</a></p>
535
+ <div class="method-source-code" id="M000113-source">
532
536
  <pre>
533
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 110</span>
537
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 123</span>
534
538
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">option</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
535
539
  <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">SelectOptionTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
536
540
  <span class="ruby-keyword kw">end</span>
@@ -539,21 +543,21 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
539
543
  </div>
540
544
  </div>
541
545
 
542
- <div id="method-M000076" class="method-detail">
543
- <a name="M000076"></a>
546
+ <div id="method-M000118" class="method-detail">
547
+ <a name="M000118"></a>
544
548
 
545
549
  <div class="method-heading">
546
- <a href="#M000076" class="method-signature">
550
+ <a href="#M000118" class="method-signature">
547
551
  <span class="method-name">page</span><span class="method-args">(*args, &amp;block)</span>
548
552
  </a>
549
553
  </div>
550
554
 
551
555
  <div class="method-description">
552
556
  <p><a class="source-toggle" href="#"
553
- onclick="toggleCode('M000076-source');return false;">[Source]</a></p>
554
- <div class="method-source-code" id="M000076-source">
557
+ onclick="toggleCode('M000118-source');return false;">[Source]</a></p>
558
+ <div class="method-source-code" id="M000118-source">
555
559
  <pre>
556
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 130</span>
560
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 143</span>
557
561
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">page</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
558
562
  <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">Page</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
559
563
  <span class="ruby-keyword kw">end</span>
@@ -562,21 +566,21 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
562
566
  </div>
563
567
  </div>
564
568
 
565
- <div id="method-M000081" class="method-detail">
566
- <a name="M000081"></a>
569
+ <div id="method-M000123" class="method-detail">
570
+ <a name="M000123"></a>
567
571
 
568
572
  <div class="method-heading">
569
- <a href="#M000081" class="method-signature">
573
+ <a href="#M000123" class="method-signature">
570
574
  <span class="method-name">paragraph</span><span class="method-args">()</span>
571
575
  </a>
572
576
  </div>
573
577
 
574
578
  <div class="method-description">
575
579
  <p><a class="source-toggle" href="#"
576
- onclick="toggleCode('M000081-source');return false;">[Source]</a></p>
577
- <div class="method-source-code" id="M000081-source">
580
+ onclick="toggleCode('M000123-source');return false;">[Source]</a></p>
581
+ <div class="method-source-code" id="M000123-source">
578
582
  <pre>
579
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 150</span>
583
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 163</span>
580
584
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">paragraph</span>
581
585
  <span class="ruby-identifier">set_brush</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericSingleTagBrush</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">&quot;p&quot;</span>))
582
586
  <span class="ruby-keyword kw">end</span>
@@ -585,21 +589,21 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
585
589
  </div>
586
590
  </div>
587
591
 
588
- <div id="method-M000062" class="method-detail">
589
- <a name="M000062"></a>
592
+ <div id="method-M000103" class="method-detail">
593
+ <a name="M000103"></a>
590
594
 
591
595
  <div class="method-heading">
592
- <a href="#M000062" class="method-signature">
596
+ <a href="#M000103" class="method-signature">
593
597
  <span class="method-name">register_callback</span><span class="method-args">(type, callback)</span>
594
598
  </a>
595
599
  </div>
596
600
 
597
601
  <div class="method-description">
598
602
  <p><a class="source-toggle" href="#"
599
- onclick="toggleCode('M000062-source');return false;">[Source]</a></p>
600
- <div class="method-source-code" id="M000062-source">
603
+ onclick="toggleCode('M000103-source');return false;">[Source]</a></p>
604
+ <div class="method-source-code" id="M000103-source">
601
605
  <pre>
602
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 74</span>
606
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 83</span>
603
607
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">register_callback</span>(<span class="ruby-identifier">type</span>, <span class="ruby-identifier">callback</span>)
604
608
  <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">rendering_context</span>.<span class="ruby-identifier">callbacks</span>.<span class="ruby-identifier">register_for</span>(<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">current_component</span>, <span class="ruby-identifier">type</span>, <span class="ruby-identifier">callback</span>)
605
609
  <span class="ruby-keyword kw">end</span>
@@ -608,21 +612,44 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
608
612
  </div>
609
613
  </div>
610
614
 
611
- <div id="method-M000088" class="method-detail">
612
- <a name="M000088"></a>
615
+ <div id="method-M000104" class="method-detail">
616
+ <a name="M000104"></a>
613
617
 
614
618
  <div class="method-heading">
615
- <a href="#M000088" class="method-signature">
619
+ <a href="#M000104" class="method-signature">
620
+ <span class="method-name">register_named_callback</span><span class="method-args">(name, type, callback)</span>
621
+ </a>
622
+ </div>
623
+
624
+ <div class="method-description">
625
+ <p><a class="source-toggle" href="#"
626
+ onclick="toggleCode('M000104-source');return false;">[Source]</a></p>
627
+ <div class="method-source-code" id="M000104-source">
628
+ <pre>
629
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 87</span>
630
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">register_named_callback</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">type</span>, <span class="ruby-identifier">callback</span>)
631
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">rendering_context</span>.<span class="ruby-identifier">callbacks</span>.<span class="ruby-identifier">register_named_for</span>(<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">current_component</span>, <span class="ruby-identifier">type</span>, <span class="ruby-identifier">callback</span>, <span class="ruby-identifier">name</span>)
632
+ <span class="ruby-keyword kw">end</span>
633
+ </pre>
634
+ </div>
635
+ </div>
636
+ </div>
637
+
638
+ <div id="method-M000130" class="method-detail">
639
+ <a name="M000130"></a>
640
+
641
+ <div class="method-heading">
642
+ <a href="#M000130" class="method-signature">
616
643
  <span class="method-name">render</span><span class="method-args">(obj)</span>
617
644
  </a>
618
645
  </div>
619
646
 
620
647
  <div class="method-description">
621
648
  <p><a class="source-toggle" href="#"
622
- onclick="toggleCode('M000088-source');return false;">[Source]</a></p>
623
- <div class="method-source-code" id="M000088-source">
649
+ onclick="toggleCode('M000130-source');return false;">[Source]</a></p>
650
+ <div class="method-source-code" id="M000130-source">
624
651
  <pre>
625
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 175</span>
652
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 188</span>
626
653
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">render</span>(<span class="ruby-identifier">obj</span>)
627
654
  <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">close</span>
628
655
  <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">do_render_chain</span>(<span class="ruby-ivar">@rendering_context</span>)
@@ -633,21 +660,21 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
633
660
  </div>
634
661
  </div>
635
662
 
636
- <div id="method-M000072" class="method-detail">
637
- <a name="M000072"></a>
663
+ <div id="method-M000114" class="method-detail">
664
+ <a name="M000114"></a>
638
665
 
639
666
  <div class="method-heading">
640
- <a href="#M000072" class="method-signature">
667
+ <a href="#M000114" class="method-signature">
641
668
  <span class="method-name">select_list</span><span class="method-args">(items)</span>
642
669
  </a>
643
670
  </div>
644
671
 
645
672
  <div class="method-description">
646
673
  <p><a class="source-toggle" href="#"
647
- onclick="toggleCode('M000072-source');return false;">[Source]</a></p>
648
- <div class="method-source-code" id="M000072-source">
674
+ onclick="toggleCode('M000114-source');return false;">[Source]</a></p>
675
+ <div class="method-source-code" id="M000114-source">
649
676
  <pre>
650
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 114</span>
677
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 127</span>
651
678
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">select_list</span>(<span class="ruby-identifier">items</span>)
652
679
  <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">SelectListTag</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">items</span>))
653
680
  <span class="ruby-keyword kw">end</span>
@@ -656,21 +683,21 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
656
683
  </div>
657
684
  </div>
658
685
 
659
- <div id="method-M000078" class="method-detail">
660
- <a name="M000078"></a>
686
+ <div id="method-M000120" class="method-detail">
687
+ <a name="M000120"></a>
661
688
 
662
689
  <div class="method-heading">
663
- <a href="#M000078" class="method-signature">
690
+ <a href="#M000120" class="method-signature">
664
691
  <span class="method-name">space</span><span class="method-args">(n=1)</span>
665
692
  </a>
666
693
  </div>
667
694
 
668
695
  <div class="method-description">
669
696
  <p><a class="source-toggle" href="#"
670
- onclick="toggleCode('M000078-source');return false;">[Source]</a></p>
671
- <div class="method-source-code" id="M000078-source">
697
+ onclick="toggleCode('M000120-source');return false;">[Source]</a></p>
698
+ <div class="method-source-code" id="M000120-source">
672
699
  <pre>
673
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 138</span>
700
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 151</span>
674
701
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">space</span>(<span class="ruby-identifier">n</span>=<span class="ruby-value">1</span>)
675
702
  <span class="ruby-identifier">set_brush</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericTextBrush</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">&quot;&amp;nbsp;&quot;</span><span class="ruby-operator">*</span><span class="ruby-identifier">n</span>))
676
703
  <span class="ruby-keyword kw">end</span>
@@ -679,21 +706,21 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
679
706
  </div>
680
707
  </div>
681
708
 
682
- <div id="method-M000073" class="method-detail">
683
- <a name="M000073"></a>
709
+ <div id="method-M000115" class="method-detail">
710
+ <a name="M000115"></a>
684
711
 
685
712
  <div class="method-heading">
686
- <a href="#M000073" class="method-signature">
713
+ <a href="#M000115" class="method-signature">
687
714
  <span class="method-name">submit_button</span><span class="method-args">(*args, &amp;block)</span>
688
715
  </a>
689
716
  </div>
690
717
 
691
718
  <div class="method-description">
692
719
  <p><a class="source-toggle" href="#"
693
- onclick="toggleCode('M000073-source');return false;">[Source]</a></p>
694
- <div class="method-source-code" id="M000073-source">
720
+ onclick="toggleCode('M000115-source');return false;">[Source]</a></p>
721
+ <div class="method-source-code" id="M000115-source">
695
722
  <pre>
696
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 118</span>
723
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 131</span>
697
724
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">submit_button</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
698
725
  <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">SubmitButtonTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
699
726
  <span class="ruby-keyword kw">end</span>
@@ -702,21 +729,21 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
702
729
  </div>
703
730
  </div>
704
731
 
705
- <div id="method-M000063" class="method-detail">
706
- <a name="M000063"></a>
732
+ <div id="method-M000105" class="method-detail">
733
+ <a name="M000105"></a>
707
734
 
708
735
  <div class="method-heading">
709
- <a href="#M000063" class="method-signature">
736
+ <a href="#M000105" class="method-signature">
710
737
  <span class="method-name">table</span><span class="method-args">(*args, &amp;block)</span>
711
738
  </a>
712
739
  </div>
713
740
 
714
741
  <div class="method-description">
715
742
  <p><a class="source-toggle" href="#"
716
- onclick="toggleCode('M000063-source');return false;">[Source]</a></p>
717
- <div class="method-source-code" id="M000063-source">
743
+ onclick="toggleCode('M000105-source');return false;">[Source]</a></p>
744
+ <div class="method-source-code" id="M000105-source">
718
745
  <pre>
719
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 78</span>
746
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 91</span>
720
747
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">table</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
721
748
  <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">TableTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
722
749
  <span class="ruby-keyword kw">end</span>
@@ -725,21 +752,21 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
725
752
  </div>
726
753
  </div>
727
754
 
728
- <div id="method-M000065" class="method-detail">
729
- <a name="M000065"></a>
755
+ <div id="method-M000107" class="method-detail">
756
+ <a name="M000107"></a>
730
757
 
731
758
  <div class="method-heading">
732
- <a href="#M000065" class="method-signature">
759
+ <a href="#M000107" class="method-signature">
733
760
  <span class="method-name">table_data</span><span class="method-args">(*args, &amp;block)</span>
734
761
  </a>
735
762
  </div>
736
763
 
737
764
  <div class="method-description">
738
765
  <p><a class="source-toggle" href="#"
739
- onclick="toggleCode('M000065-source');return false;">[Source]</a></p>
740
- <div class="method-source-code" id="M000065-source">
766
+ onclick="toggleCode('M000107-source');return false;">[Source]</a></p>
767
+ <div class="method-source-code" id="M000107-source">
741
768
  <pre>
742
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 86</span>
769
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 99</span>
743
770
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">table_data</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
744
771
  <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">TableDataTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
745
772
  <span class="ruby-keyword kw">end</span>
@@ -748,21 +775,21 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
748
775
  </div>
749
776
  </div>
750
777
 
751
- <div id="method-M000066" class="method-detail">
752
- <a name="M000066"></a>
778
+ <div id="method-M000108" class="method-detail">
779
+ <a name="M000108"></a>
753
780
 
754
781
  <div class="method-heading">
755
- <a href="#M000066" class="method-signature">
782
+ <a href="#M000108" class="method-signature">
756
783
  <span class="method-name">table_header</span><span class="method-args">(*args, &amp;block)</span>
757
784
  </a>
758
785
  </div>
759
786
 
760
787
  <div class="method-description">
761
788
  <p><a class="source-toggle" href="#"
762
- onclick="toggleCode('M000066-source');return false;">[Source]</a></p>
763
- <div class="method-source-code" id="M000066-source">
789
+ onclick="toggleCode('M000108-source');return false;">[Source]</a></p>
790
+ <div class="method-source-code" id="M000108-source">
764
791
  <pre>
765
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 90</span>
792
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 103</span>
766
793
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">table_header</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
767
794
  <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">TableHeaderTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
768
795
  <span class="ruby-keyword kw">end</span>
@@ -771,21 +798,21 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
771
798
  </div>
772
799
  </div>
773
800
 
774
- <div id="method-M000064" class="method-detail">
775
- <a name="M000064"></a>
801
+ <div id="method-M000106" class="method-detail">
802
+ <a name="M000106"></a>
776
803
 
777
804
  <div class="method-heading">
778
- <a href="#M000064" class="method-signature">
805
+ <a href="#M000106" class="method-signature">
779
806
  <span class="method-name">table_row</span><span class="method-args">(*args, &amp;block)</span>
780
807
  </a>
781
808
  </div>
782
809
 
783
810
  <div class="method-description">
784
811
  <p><a class="source-toggle" href="#"
785
- onclick="toggleCode('M000064-source');return false;">[Source]</a></p>
786
- <div class="method-source-code" id="M000064-source">
812
+ onclick="toggleCode('M000106-source');return false;">[Source]</a></p>
813
+ <div class="method-source-code" id="M000106-source">
787
814
  <pre>
788
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 82</span>
815
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 95</span>
789
816
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">table_row</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
790
817
  <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">TableRowTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
791
818
  <span class="ruby-keyword kw">end</span>
@@ -794,21 +821,55 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
794
821
  </div>
795
822
  </div>
796
823
 
797
- <div id="method-M000085" class="method-detail">
798
- <a name="M000085"></a>
824
+ <div id="method-M000131" class="method-detail">
825
+ <a name="M000131"></a>
826
+
827
+ <div class="method-heading">
828
+ <a href="#M000131" class="method-signature">
829
+ <span class="method-name">template</span><span class="method-args">(filename)</span>
830
+ </a>
831
+ </div>
832
+
833
+ <div class="method-description">
834
+ <p><a class="source-toggle" href="#"
835
+ onclick="toggleCode('M000131-source');return false;">[Source]</a></p>
836
+ <div class="method-source-code" id="M000131-source">
837
+ <pre>
838
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 196</span>
839
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">template</span>(<span class="ruby-identifier">filename</span>)
840
+ <span class="ruby-identifier">raise</span> <span class="ruby-node">&quot;Template file #{ filename } not found!&quot;</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-identifier">filename</span>)
841
+ <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">close</span>
842
+ <span class="ruby-identifier">compiler</span> = <span class="ruby-constant">ERB</span><span class="ruby-operator">::</span><span class="ruby-constant">Compiler</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">nil</span>)
843
+ <span class="ruby-identifier">compiler</span>.<span class="ruby-identifier">put_cmd</span> = <span class="ruby-value str">'r &lt;&lt; '</span>
844
+ <span class="ruby-identifier">src</span> = <span class="ruby-identifier">compiler</span>.<span class="ruby-identifier">compile</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-identifier">filename</span>))
845
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">$DEBUG</span>
846
+ <span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;-------------------------&quot;</span>
847
+ <span class="ruby-identifier">puts</span> <span class="ruby-identifier">src</span>
848
+ <span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;-------------------------&quot;</span>
849
+ <span class="ruby-keyword kw">end</span>
850
+ <span class="ruby-ivar">@current_component</span>.<span class="ruby-identifier">instance_eval</span>(<span class="ruby-identifier">src</span>, <span class="ruby-value str">'(erb)'</span>, <span class="ruby-value">1</span>)
851
+ <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
852
+ <span class="ruby-keyword kw">end</span>
853
+ </pre>
854
+ </div>
855
+ </div>
856
+ </div>
857
+
858
+ <div id="method-M000127" class="method-detail">
859
+ <a name="M000127"></a>
799
860
 
800
861
  <div class="method-heading">
801
- <a href="#M000085" class="method-signature">
862
+ <a href="#M000127" class="method-signature">
802
863
  <span class="method-name">text</span><span class="method-args">(str)</span>
803
864
  </a>
804
865
  </div>
805
866
 
806
867
  <div class="method-description">
807
868
  <p><a class="source-toggle" href="#"
808
- onclick="toggleCode('M000085-source');return false;">[Source]</a></p>
809
- <div class="method-source-code" id="M000085-source">
869
+ onclick="toggleCode('M000127-source');return false;">[Source]</a></p>
870
+ <div class="method-source-code" id="M000127-source">
810
871
  <pre>
811
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 166</span>
872
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 179</span>
812
873
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">text</span>(<span class="ruby-identifier">str</span>)
813
874
  <span class="ruby-identifier">set_brush</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericTextBrush</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">str</span>))
814
875
  <span class="ruby-keyword kw">end</span>
@@ -817,21 +878,21 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
817
878
  </div>
818
879
  </div>
819
880
 
820
- <div id="method-M000070" class="method-detail">
821
- <a name="M000070"></a>
881
+ <div id="method-M000112" class="method-detail">
882
+ <a name="M000112"></a>
822
883
 
823
884
  <div class="method-heading">
824
- <a href="#M000070" class="method-signature">
885
+ <a href="#M000112" class="method-signature">
825
886
  <span class="method-name">text_area</span><span class="method-args">(*args, &amp;block)</span>
826
887
  </a>
827
888
  </div>
828
889
 
829
890
  <div class="method-description">
830
891
  <p><a class="source-toggle" href="#"
831
- onclick="toggleCode('M000070-source');return false;">[Source]</a></p>
832
- <div class="method-source-code" id="M000070-source">
892
+ onclick="toggleCode('M000112-source');return false;">[Source]</a></p>
893
+ <div class="method-source-code" id="M000112-source">
833
894
  <pre>
834
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 106</span>
895
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 119</span>
835
896
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">text_area</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
836
897
  <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">TextAreaTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
837
898
  <span class="ruby-keyword kw">end</span>
@@ -840,21 +901,21 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
840
901
  </div>
841
902
  </div>
842
903
 
843
- <div id="method-M000069" class="method-detail">
844
- <a name="M000069"></a>
904
+ <div id="method-M000111" class="method-detail">
905
+ <a name="M000111"></a>
845
906
 
846
907
  <div class="method-heading">
847
- <a href="#M000069" class="method-signature">
908
+ <a href="#M000111" class="method-signature">
848
909
  <span class="method-name">text_input</span><span class="method-args">(*args, &amp;block)</span>
849
910
  </a>
850
911
  </div>
851
912
 
852
913
  <div class="method-description">
853
914
  <p><a class="source-toggle" href="#"
854
- onclick="toggleCode('M000069-source');return false;">[Source]</a></p>
855
- <div class="method-source-code" id="M000069-source">
915
+ onclick="toggleCode('M000111-source');return false;">[Source]</a></p>
916
+ <div class="method-source-code" id="M000111-source">
856
917
  <pre>
857
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 102</span>
918
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 115</span>
858
919
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">text_input</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
859
920
  <span class="ruby-identifier">handle</span>(<span class="ruby-constant">Brush</span><span class="ruby-operator">::</span><span class="ruby-constant">TextInputTag</span>.<span class="ruby-identifier">new</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
860
921
  <span class="ruby-keyword kw">end</span>
@@ -863,24 +924,47 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
863
924
  </div>
864
925
  </div>
865
926
 
866
- <div id="method-M000061" class="method-detail">
867
- <a name="M000061"></a>
927
+ <div id="method-M000100" class="method-detail">
928
+ <a name="M000100"></a>
868
929
 
869
930
  <div class="method-heading">
870
- <a href="#M000061" class="method-signature">
931
+ <a href="#M000100" class="method-signature">
871
932
  <span class="method-name">url_for_callback</span><span class="method-args">(callback)</span>
872
933
  </a>
873
934
  </div>
874
935
 
875
936
  <div class="method-description">
876
937
  <p><a class="source-toggle" href="#"
877
- onclick="toggleCode('M000061-source');return false;">[Source]</a></p>
878
- <div class="method-source-code" id="M000061-source">
938
+ onclick="toggleCode('M000100-source');return false;">[Source]</a></p>
939
+ <div class="method-source-code" id="M000100-source">
879
940
  <pre>
880
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 68</span>
941
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 69</span>
881
942
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">url_for_callback</span>(<span class="ruby-identifier">callback</span>)
943
+ <span class="ruby-identifier">url_for_callback_id</span>(<span class="ruby-identifier">register_callback</span>(<span class="ruby-identifier">:action</span>, <span class="ruby-identifier">callback</span>))
944
+ <span class="ruby-keyword kw">end</span>
945
+ </pre>
946
+ </div>
947
+ </div>
948
+ </div>
949
+
950
+ <div id="method-M000102" class="method-detail">
951
+ <a name="M000102"></a>
952
+
953
+ <div class="method-heading">
954
+ <a href="#M000102" class="method-signature">
955
+ <span class="method-name">url_for_callback_id</span><span class="method-args">(callback_id)</span>
956
+ </a>
957
+ </div>
958
+
959
+ <div class="method-description">
960
+ <p><a class="source-toggle" href="#"
961
+ onclick="toggleCode('M000102-source');return false;">[Source]</a></p>
962
+ <div class="method-source-code" id="M000102-source">
963
+ <pre>
964
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 77</span>
965
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">url_for_callback_id</span>(<span class="ruby-identifier">callback_id</span>)
882
966
  <span class="ruby-identifier">req</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">rendering_context</span>.<span class="ruby-identifier">request</span>
883
- <span class="ruby-identifier">url</span> = <span class="ruby-identifier">req</span>.<span class="ruby-identifier">build_url</span>(<span class="ruby-identifier">req</span>.<span class="ruby-identifier">request_handler_id</span>, <span class="ruby-identifier">req</span>.<span class="ruby-identifier">page_id</span>, <span class="ruby-identifier">register_callback</span>(<span class="ruby-identifier">:action</span>, <span class="ruby-identifier">callback</span>))
967
+ <span class="ruby-identifier">url</span> = <span class="ruby-identifier">req</span>.<span class="ruby-identifier">build_url</span>(<span class="ruby-identifier">req</span>.<span class="ruby-identifier">request_handler_id</span>, <span class="ruby-identifier">req</span>.<span class="ruby-identifier">page_id</span>, <span class="ruby-identifier">callback_id</span>)
884
968
  <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">url</span>
885
969
  <span class="ruby-keyword kw">end</span>
886
970
  </pre>
@@ -888,23 +972,46 @@ Alias for <a href="HtmlCanvas.html#M000085">text</a>
888
972
  </div>
889
973
  </div>
890
974
 
975
+ <div id="method-M000101" class="method-detail">
976
+ <a name="M000101"></a>
977
+
978
+ <div class="method-heading">
979
+ <a href="#M000101" class="method-signature">
980
+ <span class="method-name">url_for_named_callback</span><span class="method-args">(name, callback)</span>
981
+ </a>
982
+ </div>
983
+
984
+ <div class="method-description">
985
+ <p><a class="source-toggle" href="#"
986
+ onclick="toggleCode('M000101-source');return false;">[Source]</a></p>
987
+ <div class="method-source-code" id="M000101-source">
988
+ <pre>
989
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 73</span>
990
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">url_for_named_callback</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">callback</span>)
991
+ <span class="ruby-identifier">url_for_callback_id</span>(<span class="ruby-identifier">register_named_callback</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">:action</span>, <span class="ruby-identifier">callback</span>))
992
+ <span class="ruby-keyword kw">end</span>
993
+ </pre>
994
+ </div>
995
+ </div>
996
+ </div>
997
+
891
998
  <h3 class="section-bar">Private Instance methods</h3>
892
999
 
893
- <div id="method-M000089" class="method-detail">
894
- <a name="M000089"></a>
1000
+ <div id="method-M000132" class="method-detail">
1001
+ <a name="M000132"></a>
895
1002
 
896
1003
  <div class="method-heading">
897
- <a href="#M000089" class="method-signature">
1004
+ <a href="#M000132" class="method-signature">
898
1005
  <span class="method-name">handle</span><span class="method-args">(brush, *args, &amp;block)</span>
899
1006
  </a>
900
1007
  </div>
901
1008
 
902
1009
  <div class="method-description">
903
1010
  <p><a class="source-toggle" href="#"
904
- onclick="toggleCode('M000089-source');return false;">[Source]</a></p>
905
- <div class="method-source-code" id="M000089-source">
1011
+ onclick="toggleCode('M000132-source');return false;">[Source]</a></p>
1012
+ <div class="method-source-code" id="M000132-source">
906
1013
  <pre>
907
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 183</span>
1014
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 213</span>
908
1015
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">handle</span>(<span class="ruby-identifier">brush</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
909
1016
  <span class="ruby-identifier">set_brush</span>(<span class="ruby-identifier">brush</span>)
910
1017
  <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">not</span> <span class="ruby-identifier">args</span>.<span class="ruby-identifier">empty?</span> <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">block</span>