wee 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (146) hide show
  1. data/ChangeLog +75 -0
  2. data/README +17 -9
  3. data/Rakefile +2 -2
  4. data/TODO +20 -0
  5. data/benchmark/Makefile +14 -9
  6. data/benchmark/counter.rb +11 -30
  7. data/benchmark/report_req.rb +12 -0
  8. data/doc/rdoc/classes/Array.html +12 -12
  9. data/doc/rdoc/classes/Cache/StorageCache.html +38 -38
  10. data/doc/rdoc/classes/Cache/Strategy/CapacityBounded.html +30 -30
  11. data/doc/rdoc/classes/Cache/Strategy/LFU.html +24 -24
  12. data/doc/rdoc/classes/Cache/Strategy/LRU.html +24 -24
  13. data/doc/rdoc/classes/Cache/Strategy/Unbounded.html +24 -24
  14. data/doc/rdoc/classes/Enumerable.html +6 -6
  15. data/doc/rdoc/classes/Object.html +12 -12
  16. data/doc/rdoc/classes/OgApplication.html +126 -0
  17. data/doc/rdoc/classes/OgScaffolder.html +401 -0
  18. data/doc/rdoc/classes/OgSession.html +172 -0
  19. data/doc/rdoc/classes/String.html +12 -12
  20. data/doc/rdoc/classes/Struct.html +12 -12
  21. data/doc/rdoc/classes/Wee.html +5 -62
  22. data/doc/rdoc/classes/Wee/AnswerDecoration.html +9 -9
  23. data/doc/rdoc/classes/Wee/Application.html +107 -39
  24. data/doc/rdoc/classes/Wee/Brush.html +22 -18
  25. data/doc/rdoc/classes/Wee/Brush/ActionCallbackMixin.html +17 -11
  26. data/doc/rdoc/classes/Wee/Brush/ActionURLCallbackMixin.html +18 -10
  27. data/doc/rdoc/classes/Wee/Brush/AnchorTag.html +30 -64
  28. data/doc/rdoc/classes/Wee/Brush/FileUploadTag.html +8 -10
  29. data/doc/rdoc/classes/Wee/Brush/FormTag.html +27 -79
  30. data/doc/rdoc/classes/Wee/Brush/GenericEncodedTextBrush.html +12 -12
  31. data/doc/rdoc/classes/Wee/Brush/GenericSingleTagBrush.html +146 -0
  32. data/doc/rdoc/classes/Wee/Brush/GenericTagBrush.html +179 -65
  33. data/doc/rdoc/classes/Wee/Brush/GenericTextBrush.html +12 -12
  34. data/doc/rdoc/classes/Wee/Brush/ImageButtonTag.html +16 -18
  35. data/doc/rdoc/classes/Wee/Brush/ImageTag.html +203 -0
  36. data/doc/rdoc/classes/Wee/Brush/InputCallbackMixin.html +17 -11
  37. data/doc/rdoc/classes/Wee/Brush/InputTag.html +15 -15
  38. data/doc/rdoc/classes/Wee/Brush/JavascriptTag.html +147 -0
  39. data/doc/rdoc/classes/Wee/Brush/Page.html +17 -17
  40. data/doc/rdoc/classes/Wee/Brush/SelectListTag.html +25 -50
  41. data/doc/rdoc/classes/Wee/Brush/SelectOptionTag.html +7 -38
  42. data/doc/rdoc/classes/Wee/Brush/SubmitButtonTag.html +7 -7
  43. data/doc/rdoc/classes/Wee/Brush/TableDataTag.html +15 -16
  44. data/doc/rdoc/classes/Wee/Brush/TableHeaderTag.html +7 -7
  45. data/doc/rdoc/classes/Wee/Brush/TableRowTag.html +65 -50
  46. data/doc/rdoc/classes/Wee/Brush/TableTag.html +7 -7
  47. data/doc/rdoc/classes/Wee/Brush/TextAreaTag.html +14 -64
  48. data/doc/rdoc/classes/Wee/Brush/TextInputTag.html +7 -7
  49. data/doc/rdoc/classes/Wee/Brush/ToCallback.html +146 -0
  50. data/doc/rdoc/classes/Wee/CallbackRegistry.html +40 -40
  51. data/doc/rdoc/classes/Wee/CallbackStream.html +18 -18
  52. data/doc/rdoc/classes/Wee/Canvas.html +24 -24
  53. data/doc/rdoc/classes/Wee/Component.html +232 -149
  54. data/doc/rdoc/classes/Wee/Component/OnAnswer.html +153 -0
  55. data/doc/rdoc/classes/Wee/Decoration.html +42 -42
  56. data/doc/rdoc/classes/Wee/Delegate.html +27 -27
  57. data/doc/rdoc/classes/Wee/ErrorResponse.html +12 -12
  58. data/doc/rdoc/classes/Wee/FormDecoration.html +148 -0
  59. data/doc/rdoc/classes/Wee/GenericResponse.html +6 -6
  60. data/doc/rdoc/classes/Wee/HtmlCanvas.html +296 -215
  61. data/doc/rdoc/classes/Wee/HtmlWriter.html +83 -81
  62. data/doc/rdoc/classes/Wee/LiteralMethodCallback.html +21 -16
  63. data/doc/rdoc/classes/Wee/MessageBox.html +180 -0
  64. data/doc/rdoc/classes/Wee/PageDecoration.html +30 -30
  65. data/doc/rdoc/classes/Wee/Presenter.html +237 -69
  66. data/doc/rdoc/classes/Wee/RedirectResponse.html +6 -6
  67. data/doc/rdoc/classes/Wee/RefreshResponse.html +6 -6
  68. data/doc/rdoc/classes/Wee/Request.html +18 -18
  69. data/doc/rdoc/classes/Wee/RequestHandler.html +43 -39
  70. data/doc/rdoc/classes/Wee/Response.html +24 -24
  71. data/doc/rdoc/classes/Wee/Session.html +746 -72
  72. data/doc/rdoc/classes/Wee/SimpleIdGenerator.html +18 -18
  73. data/doc/rdoc/classes/Wee/Snapshot.html +19 -19
  74. data/doc/rdoc/classes/Wee/Utils.html +138 -2
  75. data/doc/rdoc/classes/Wee/Utils/LRUCache.html +7 -7
  76. data/doc/rdoc/classes/Wee/ValueHolder.html +18 -18
  77. data/doc/rdoc/classes/Wee/WEBrickAdaptor.html +43 -68
  78. data/doc/rdoc/classes/Wee/WrapperDecoration.html +150 -0
  79. data/doc/rdoc/created.rid +1 -1
  80. data/doc/rdoc/files/README.html +29 -15
  81. data/doc/rdoc/files/lib/wee/adaptors/webrick_rb.html +1 -1
  82. data/doc/rdoc/files/lib/wee/application_rb.html +1 -1
  83. data/doc/rdoc/files/lib/wee/components/form_decoration_rb.html +101 -0
  84. data/doc/rdoc/files/lib/wee/components/messagebox_rb.html +101 -0
  85. data/doc/rdoc/files/lib/wee/components/page_decoration_rb.html +1 -1
  86. data/doc/rdoc/files/lib/wee/components/wrapper_decoration_rb.html +101 -0
  87. data/doc/rdoc/files/lib/wee/components_rb.html +4 -1
  88. data/doc/rdoc/files/lib/wee/continuation/core/component_rb.html +101 -0
  89. data/doc/rdoc/files/lib/wee/continuation/session_rb.html +110 -0
  90. data/doc/rdoc/files/lib/wee/continuation_rb.html +116 -0
  91. data/doc/rdoc/files/lib/wee/core/callback_rb.html +1 -1
  92. data/doc/rdoc/files/lib/wee/core/component_rb.html +1 -1
  93. data/doc/rdoc/files/lib/wee/core/presenter_rb.html +1 -1
  94. data/doc/rdoc/files/lib/wee/core_rb.html +3 -3
  95. data/doc/rdoc/files/lib/wee/databases/og_rb.html +108 -0
  96. data/doc/rdoc/files/lib/wee/renderer/html/brushes_rb.html +1 -1
  97. data/doc/rdoc/files/lib/wee/renderer/html/canvas_rb.html +1 -1
  98. data/doc/rdoc/files/lib/wee/renderer/html/writer_rb.html +1 -1
  99. data/doc/rdoc/files/lib/wee/requesthandler_rb.html +1 -1
  100. data/doc/rdoc/files/lib/wee/session_rb.html +1 -2
  101. data/doc/rdoc/files/lib/wee/utils/autoreload_rb.html +1 -1
  102. data/doc/rdoc/files/lib/wee/utils/cache_rb.html +1 -1
  103. data/doc/rdoc/files/lib/wee/utils/helper_rb.html +1 -8
  104. data/doc/rdoc/files/lib/wee/utils_rb.html +110 -0
  105. data/doc/rdoc/files/lib/wee_rb.html +1 -1
  106. data/doc/rdoc/fr_class_index.html +11 -1
  107. data/doc/rdoc/fr_file_index.html +8 -0
  108. data/doc/rdoc/fr_method_index.html +269 -228
  109. data/examples/calculator.rb +69 -0
  110. data/examples/calendar.rb +5 -17
  111. data/examples/example.rb +2 -2
  112. data/examples/hw.rb +17 -0
  113. data/examples/live-update.rb +45 -0
  114. data/examples/og-test.rb +51 -0
  115. data/lib/wee.rb +1 -1
  116. data/lib/wee/adaptors/webrick.rb +2 -0
  117. data/lib/wee/application.rb +16 -0
  118. data/lib/wee/components.rb +3 -0
  119. data/lib/wee/components/form_decoration.rb +7 -0
  120. data/{test → lib/wee}/components/messagebox.rb +1 -1
  121. data/lib/wee/components/page_decoration.rb +5 -5
  122. data/lib/wee/components/wrapper_decoration.rb +7 -0
  123. data/lib/wee/continuation.rb +5 -0
  124. data/lib/wee/continuation/core/component.rb +55 -0
  125. data/lib/wee/continuation/session.rb +217 -0
  126. data/lib/wee/core/callback.rb +11 -6
  127. data/lib/wee/core/component.rb +45 -33
  128. data/lib/wee/core/presenter.rb +68 -0
  129. data/lib/wee/databases/og.rb +114 -0
  130. data/lib/wee/renderer/html/brushes.rb +179 -98
  131. data/lib/wee/renderer/html/canvas.rb +37 -13
  132. data/lib/wee/renderer/html/writer.rb +34 -32
  133. data/lib/wee/requesthandler.rb +6 -3
  134. data/lib/wee/session.rb +73 -54
  135. data/lib/wee/utils.rb +5 -0
  136. data/lib/wee/utils/autoreload.rb +1 -1
  137. data/lib/wee/utils/cache.rb +0 -2
  138. data/lib/wee/utils/helper.rb +40 -8
  139. data/test/components/calltest-cont.rb +16 -0
  140. data/test/components/calltest.rb +15 -10
  141. data/test/stress.rb +31 -28
  142. data/test/stress_and_measure.rb +53 -0
  143. data/test/stressed_application.rb +15 -0
  144. data/test/test_html_writer.rb +9 -4
  145. metadata +236 -195
  146. data/benchmark/bench.sh +0 -24
@@ -88,8 +88,8 @@
88
88
  <h3 class="section-bar">Methods</h3>
89
89
 
90
90
  <div class="name-list">
91
- <a href="#M000224">new</a>&nbsp;&nbsp;
92
- <a href="#M000225">render</a>&nbsp;&nbsp;
91
+ <a href="#M000265">new</a>&nbsp;&nbsp;
92
+ <a href="#M000266">render</a>&nbsp;&nbsp;
93
93
  </div>
94
94
  </div>
95
95
 
@@ -111,19 +111,19 @@
111
111
  <div id="methods">
112
112
  <h3 class="section-bar">Public Class methods</h3>
113
113
 
114
- <div id="method-M000224" class="method-detail">
115
- <a name="M000224"></a>
114
+ <div id="method-M000265" class="method-detail">
115
+ <a name="M000265"></a>
116
116
 
117
117
  <div class="method-heading">
118
- <a href="#M000224" class="method-signature">
118
+ <a href="#M000265" class="method-signature">
119
119
  <span class="method-name">new</span><span class="method-args">(exception)</span>
120
120
  </a>
121
121
  </div>
122
122
 
123
123
  <div class="method-description">
124
124
  <p><a class="source-toggle" href="#"
125
- onclick="toggleCode('M000224-source');return false;">[Source]</a></p>
126
- <div class="method-source-code" id="M000224-source">
125
+ onclick="toggleCode('M000265-source');return false;">[Source]</a></p>
126
+ <div class="method-source-code" id="M000265-source">
127
127
  <pre>
128
128
  <span class="ruby-comment cmt"># File lib/wee/response.rb, line 64</span>
129
129
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">exception</span>)
@@ -138,19 +138,19 @@
138
138
 
139
139
  <h3 class="section-bar">Public Instance methods</h3>
140
140
 
141
- <div id="method-M000225" class="method-detail">
142
- <a name="M000225"></a>
141
+ <div id="method-M000266" class="method-detail">
142
+ <a name="M000266"></a>
143
143
 
144
144
  <div class="method-heading">
145
- <a href="#M000225" class="method-signature">
145
+ <a href="#M000266" class="method-signature">
146
146
  <span class="method-name">render</span><span class="method-args">(c)</span>
147
147
  </a>
148
148
  </div>
149
149
 
150
150
  <div class="method-description">
151
151
  <p><a class="source-toggle" href="#"
152
- onclick="toggleCode('M000225-source');return false;">[Source]</a></p>
153
- <div class="method-source-code" id="M000225-source">
152
+ onclick="toggleCode('M000266-source');return false;">[Source]</a></p>
153
+ <div class="method-source-code" id="M000266-source">
154
154
  <pre>
155
155
  <span class="ruby-comment cmt"># File lib/wee/response.rb, line 70</span>
156
156
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">render</span>(<span class="ruby-identifier">c</span>)
@@ -0,0 +1,148 @@
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: Wee::FormDecoration</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">Wee::FormDecoration</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../files/lib/wee/components/form_decoration_rb.html">
59
+ lib/wee/components/form_decoration.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="WrapperDecoration.html">
69
+ Wee::WrapperDecoration
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
+
84
+
85
+ </div>
86
+
87
+ <div id="method-list">
88
+ <h3 class="section-bar">Methods</h3>
89
+
90
+ <div class="name-list">
91
+ <a href="#M000054">render_wrapper</a>&nbsp;&nbsp;
92
+ </div>
93
+ </div>
94
+
95
+ </div>
96
+
97
+
98
+ <!-- if includes -->
99
+
100
+ <div id="section">
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+ <!-- if method_list -->
110
+ <div id="methods">
111
+ <h3 class="section-bar">Private Instance methods</h3>
112
+
113
+ <div id="method-M000054" class="method-detail">
114
+ <a name="M000054"></a>
115
+
116
+ <div class="method-heading">
117
+ <a href="#M000054" class="method-signature">
118
+ <span class="method-name">render_wrapper</span><span class="method-args">() {|| ...}</span>
119
+ </a>
120
+ </div>
121
+
122
+ <div class="method-description">
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">
126
+ <pre>
127
+ <span class="ruby-comment cmt"># File lib/wee/components/form_decoration.rb, line 4</span>
128
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">render_wrapper</span>
129
+ <span class="ruby-identifier">r</span>.<span class="ruby-identifier">form</span> { <span class="ruby-keyword kw">yield</span> }
130
+ <span class="ruby-keyword kw">end</span>
131
+ </pre>
132
+ </div>
133
+ </div>
134
+ </div>
135
+
136
+
137
+ </div>
138
+
139
+
140
+ </div>
141
+
142
+
143
+ <div id="validator-badges">
144
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
145
+ </div>
146
+
147
+ </body>
148
+ </html>
@@ -88,7 +88,7 @@
88
88
  <h3 class="section-bar">Methods</h3>
89
89
 
90
90
  <div class="name-list">
91
- <a href="#M000043">new</a>&nbsp;&nbsp;
91
+ <a href="#M000055">new</a>&nbsp;&nbsp;
92
92
  </div>
93
93
  </div>
94
94
 
@@ -123,19 +123,19 @@
123
123
  <div id="methods">
124
124
  <h3 class="section-bar">Public Class methods</h3>
125
125
 
126
- <div id="method-M000043" class="method-detail">
127
- <a name="M000043"></a>
126
+ <div id="method-M000055" class="method-detail">
127
+ <a name="M000055"></a>
128
128
 
129
129
  <div class="method-heading">
130
- <a href="#M000043" class="method-signature">
130
+ <a href="#M000055" 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('M000043-source');return false;">[Source]</a></p>
138
- <div class="method-source-code" id="M000043-source">
137
+ onclick="toggleCode('M000055-source');return false;">[Source]</a></p>
138
+ <div class="method-source-code" id="M000055-source">
139
139
  <pre>
140
140
  <span class="ruby-comment cmt"># File lib/wee/response.rb, line 33</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>)
@@ -88,35 +88,38 @@
88
88
  <h3 class="section-bar">Methods</h3>
89
89
 
90
90
  <div class="name-list">
91
- <a href="#M000070">&lt;&lt;</a>&nbsp;&nbsp;
92
- <a href="#M000063">anchor</a>&nbsp;&nbsp;
93
- <a href="#M000065">bold</a>&nbsp;&nbsp;
94
- <a href="#M000067">break</a>&nbsp;&nbsp;
95
- <a href="#M000071">encode_text</a>&nbsp;&nbsp;
96
- <a href="#M000061">file_upload</a>&nbsp;&nbsp;
97
- <a href="#M000053">form</a>&nbsp;&nbsp;
98
- <a href="#M000073">handle</a>&nbsp;&nbsp;
99
- <a href="#M000068">image</a>&nbsp;&nbsp;
100
- <a href="#M000060">image_button</a>&nbsp;&nbsp;
101
- <a href="#M000054">input</a>&nbsp;&nbsp;
102
- <a href="#M000046">method_missing</a>&nbsp;&nbsp;
103
- <a href="#M000045">new</a>&nbsp;&nbsp;
104
- <a href="#M000057">option</a>&nbsp;&nbsp;
105
- <a href="#M000062">page</a>&nbsp;&nbsp;
106
- <a href="#M000066">paragraph</a>&nbsp;&nbsp;
107
- <a href="#M000048">register_callback</a>&nbsp;&nbsp;
108
- <a href="#M000072">render</a>&nbsp;&nbsp;
109
- <a href="#M000058">select_list</a>&nbsp;&nbsp;
110
- <a href="#M000064">space</a>&nbsp;&nbsp;
111
- <a href="#M000059">submit_button</a>&nbsp;&nbsp;
112
- <a href="#M000049">table</a>&nbsp;&nbsp;
113
- <a href="#M000051">table_data</a>&nbsp;&nbsp;
114
- <a href="#M000052">table_header</a>&nbsp;&nbsp;
115
- <a href="#M000050">table_row</a>&nbsp;&nbsp;
116
- <a href="#M000069">text</a>&nbsp;&nbsp;
117
- <a href="#M000056">text_area</a>&nbsp;&nbsp;
118
- <a href="#M000055">text_input</a>&nbsp;&nbsp;
119
- <a href="#M000047">url_for_callback</a>&nbsp;&nbsp;
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;
120
123
  </div>
121
124
  </div>
122
125
 
@@ -161,21 +164,79 @@
161
164
  <div id="methods">
162
165
  <h3 class="section-bar">Public Class methods</h3>
163
166
 
164
- <div id="method-M000045" class="method-detail">
165
- <a name="M000045"></a>
167
+ <div id="method-M000059" class="method-detail">
168
+ <a name="M000059"></a>
166
169
 
167
170
  <div class="method-heading">
168
- <a href="#M000045" class="method-signature">
169
- <span class="method-name">new</span><span class="method-args">(rendering_context)</span>
171
+ <a href="#M000059" class="method-signature">
172
+ <span class="method-name">generic_single_tag</span><span class="method-args">(*attrs)</span>
173
+ </a>
174
+ </div>
175
+
176
+ <div class="method-description">
177
+ <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">
180
+ <pre>
181
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 49</span>
182
+ <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>)
183
+ <span class="ruby-identifier">attrs</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">a</span><span class="ruby-operator">|</span>
184
+ <span class="ruby-identifier">class_eval</span> <span class="ruby-node">&quot;
185
+ def #{ a }(*args, &amp;block)
186
+ handle(Brush::GenericSingleTagBrush.new('#{ a }'), *args, &amp;block)
187
+ end
188
+ &quot;</span>
189
+ }
190
+ <span class="ruby-keyword kw">end</span>
191
+ </pre>
192
+ </div>
193
+ </div>
194
+ </div>
195
+
196
+ <div id="method-M000058" class="method-detail">
197
+ <a name="M000058"></a>
198
+
199
+ <div class="method-heading">
200
+ <a href="#M000058" class="method-signature">
201
+ <span class="method-name">generic_tag</span><span class="method-args">(*attrs)</span>
170
202
  </a>
171
203
  </div>
172
204
 
173
205
  <div class="method-description">
174
206
  <p><a class="source-toggle" href="#"
175
- onclick="toggleCode('M000045-source');return false;">[Source]</a></p>
176
- <div class="method-source-code" id="M000045-source">
207
+ onclick="toggleCode('M000058-source');return false;">[Source]</a></p>
208
+ <div class="method-source-code" id="M000058-source">
177
209
  <pre>
178
210
  <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 39</span>
211
+ <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>)
212
+ <span class="ruby-identifier">attrs</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">a</span><span class="ruby-operator">|</span>
213
+ <span class="ruby-identifier">class_eval</span> <span class="ruby-node">&quot;
214
+ def #{ a }(*args, &amp;block)
215
+ handle(Brush::GenericTagBrush.new('#{ a }'), *args, &amp;block)
216
+ end
217
+ &quot;</span>
218
+ }
219
+ <span class="ruby-keyword kw">end</span>
220
+ </pre>
221
+ </div>
222
+ </div>
223
+ </div>
224
+
225
+ <div id="method-M000060" class="method-detail">
226
+ <a name="M000060"></a>
227
+
228
+ <div class="method-heading">
229
+ <a href="#M000060" class="method-signature">
230
+ <span class="method-name">new</span><span class="method-args">(rendering_context)</span>
231
+ </a>
232
+ </div>
233
+
234
+ <div class="method-description">
235
+ <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">
238
+ <pre>
239
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 59</span>
179
240
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">rendering_context</span>)
180
241
  <span class="ruby-keyword kw">super</span>()
181
242
  <span class="ruby-ivar">@rendering_context</span> = <span class="ruby-identifier">rendering_context</span>
@@ -188,8 +249,8 @@
188
249
 
189
250
  <h3 class="section-bar">Public Instance methods</h3>
190
251
 
191
- <div id="method-M000070" class="method-detail">
192
- <a name="M000070"></a>
252
+ <div id="method-M000086" class="method-detail">
253
+ <a name="M000086"></a>
193
254
 
194
255
  <div class="method-heading">
195
256
  <span class="method-name">&lt;&lt;</span><span class="method-args">(str)</span>
@@ -197,26 +258,26 @@
197
258
 
198
259
  <div class="method-description">
199
260
  <p>
200
- Alias for <a href="HtmlCanvas.html#M000069">text</a>
261
+ Alias for <a href="HtmlCanvas.html#M000085">text</a>
201
262
  </p>
202
263
  </div>
203
264
  </div>
204
265
 
205
- <div id="method-M000063" class="method-detail">
206
- <a name="M000063"></a>
266
+ <div id="method-M000077" class="method-detail">
267
+ <a name="M000077"></a>
207
268
 
208
269
  <div class="method-heading">
209
- <a href="#M000063" class="method-signature">
270
+ <a href="#M000077" class="method-signature">
210
271
  <span class="method-name">anchor</span><span class="method-args">(*args, &amp;block)</span>
211
272
  </a>
212
273
  </div>
213
274
 
214
275
  <div class="method-description">
215
276
  <p><a class="source-toggle" href="#"
216
- onclick="toggleCode('M000063-source');return false;">[Source]</a></p>
217
- <div class="method-source-code" id="M000063-source">
277
+ onclick="toggleCode('M000077-source');return false;">[Source]</a></p>
278
+ <div class="method-source-code" id="M000077-source">
218
279
  <pre>
219
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 118</span>
280
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 134</span>
220
281
  <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>)
221
282
  <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>)
222
283
  <span class="ruby-keyword kw">end</span>
@@ -225,21 +286,21 @@ Alias for <a href="HtmlCanvas.html#M000069">text</a>
225
286
  </div>
226
287
  </div>
227
288
 
228
- <div id="method-M000065" class="method-detail">
229
- <a name="M000065"></a>
289
+ <div id="method-M000079" class="method-detail">
290
+ <a name="M000079"></a>
230
291
 
231
292
  <div class="method-heading">
232
- <a href="#M000065" class="method-signature">
293
+ <a href="#M000079" class="method-signature">
233
294
  <span class="method-name">bold</span><span class="method-args">(*args, &amp;block)</span>
234
295
  </a>
235
296
  </div>
236
297
 
237
298
  <div class="method-description">
238
299
  <p><a class="source-toggle" href="#"
239
- onclick="toggleCode('M000065-source');return false;">[Source]</a></p>
240
- <div class="method-source-code" id="M000065-source">
300
+ onclick="toggleCode('M000079-source');return false;">[Source]</a></p>
301
+ <div class="method-source-code" id="M000079-source">
241
302
  <pre>
242
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 126</span>
303
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 142</span>
243
304
  <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>)
244
305
  <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>)
245
306
  <span class="ruby-keyword kw">end</span>
@@ -248,44 +309,44 @@ Alias for <a href="HtmlCanvas.html#M000069">text</a>
248
309
  </div>
249
310
  </div>
250
311
 
251
- <div id="method-M000067" class="method-detail">
252
- <a name="M000067"></a>
312
+ <div id="method-M000082" class="method-detail">
313
+ <a name="M000082"></a>
253
314
 
254
315
  <div class="method-heading">
255
- <a href="#M000067" class="method-signature">
316
+ <a href="#M000082" class="method-signature">
256
317
  <span class="method-name">break</span><span class="method-args">()</span>
257
318
  </a>
258
319
  </div>
259
320
 
260
321
  <div class="method-description">
261
322
  <p><a class="source-toggle" href="#"
262
- onclick="toggleCode('M000067-source');return false;">[Source]</a></p>
263
- <div class="method-source-code" id="M000067-source">
323
+ onclick="toggleCode('M000082-source');return false;">[Source]</a></p>
324
+ <div class="method-source-code" id="M000082-source">
264
325
  <pre>
265
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 134</span>
326
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 154</span>
266
327
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">break</span>
267
- <span class="ruby-identifier">set_brush</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;br&quot;</span>))
328
+ <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>))
268
329
  <span class="ruby-keyword kw">end</span>
269
330
  </pre>
270
331
  </div>
271
332
  </div>
272
333
  </div>
273
334
 
274
- <div id="method-M000071" class="method-detail">
275
- <a name="M000071"></a>
335
+ <div id="method-M000087" class="method-detail">
336
+ <a name="M000087"></a>
276
337
 
277
338
  <div class="method-heading">
278
- <a href="#M000071" class="method-signature">
339
+ <a href="#M000087" class="method-signature">
279
340
  <span class="method-name">encode_text</span><span class="method-args">(str)</span>
280
341
  </a>
281
342
  </div>
282
343
 
283
344
  <div class="method-description">
284
345
  <p><a class="source-toggle" href="#"
285
- onclick="toggleCode('M000071-source');return false;">[Source]</a></p>
286
- <div class="method-source-code" id="M000071-source">
346
+ onclick="toggleCode('M000087-source');return false;">[Source]</a></p>
347
+ <div class="method-source-code" id="M000087-source">
287
348
  <pre>
288
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 147</span>
349
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 171</span>
289
350
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">encode_text</span>(<span class="ruby-identifier">str</span>)
290
351
  <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>))
291
352
  <span class="ruby-keyword kw">end</span>
@@ -294,21 +355,21 @@ Alias for <a href="HtmlCanvas.html#M000069">text</a>
294
355
  </div>
295
356
  </div>
296
357
 
297
- <div id="method-M000061" class="method-detail">
298
- <a name="M000061"></a>
358
+ <div id="method-M000075" class="method-detail">
359
+ <a name="M000075"></a>
299
360
 
300
361
  <div class="method-heading">
301
- <a href="#M000061" class="method-signature">
362
+ <a href="#M000075" class="method-signature">
302
363
  <span class="method-name">file_upload</span><span class="method-args">(*args, &amp;block)</span>
303
364
  </a>
304
365
  </div>
305
366
 
306
367
  <div class="method-description">
307
368
  <p><a class="source-toggle" href="#"
308
- onclick="toggleCode('M000061-source');return false;">[Source]</a></p>
309
- <div class="method-source-code" id="M000061-source">
369
+ onclick="toggleCode('M000075-source');return false;">[Source]</a></p>
370
+ <div class="method-source-code" id="M000075-source">
310
371
  <pre>
311
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 110</span>
372
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 126</span>
312
373
  <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>)
313
374
  <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>)
314
375
  <span class="ruby-keyword kw">end</span>
@@ -317,21 +378,21 @@ Alias for <a href="HtmlCanvas.html#M000069">text</a>
317
378
  </div>
318
379
  </div>
319
380
 
320
- <div id="method-M000053" class="method-detail">
321
- <a name="M000053"></a>
381
+ <div id="method-M000067" class="method-detail">
382
+ <a name="M000067"></a>
322
383
 
323
384
  <div class="method-heading">
324
- <a href="#M000053" class="method-signature">
385
+ <a href="#M000067" class="method-signature">
325
386
  <span class="method-name">form</span><span class="method-args">(*args, &amp;block)</span>
326
387
  </a>
327
388
  </div>
328
389
 
329
390
  <div class="method-description">
330
391
  <p><a class="source-toggle" href="#"
331
- onclick="toggleCode('M000053-source');return false;">[Source]</a></p>
332
- <div class="method-source-code" id="M000053-source">
392
+ onclick="toggleCode('M000067-source');return false;">[Source]</a></p>
393
+ <div class="method-source-code" id="M000067-source">
333
394
  <pre>
334
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 78</span>
395
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 94</span>
335
396
  <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>)
336
397
  <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>)
337
398
  <span class="ruby-keyword kw">end</span>
@@ -340,44 +401,44 @@ Alias for <a href="HtmlCanvas.html#M000069">text</a>
340
401
  </div>
341
402
  </div>
342
403
 
343
- <div id="method-M000068" class="method-detail">
344
- <a name="M000068"></a>
404
+ <div id="method-M000083" class="method-detail">
405
+ <a name="M000083"></a>
345
406
 
346
407
  <div class="method-heading">
347
- <a href="#M000068" class="method-signature">
408
+ <a href="#M000083" class="method-signature">
348
409
  <span class="method-name">image</span><span class="method-args">()</span>
349
410
  </a>
350
411
  </div>
351
412
 
352
413
  <div class="method-description">
353
414
  <p><a class="source-toggle" href="#"
354
- onclick="toggleCode('M000068-source');return false;">[Source]</a></p>
355
- <div class="method-source-code" id="M000068-source">
415
+ onclick="toggleCode('M000083-source');return false;">[Source]</a></p>
416
+ <div class="method-source-code" id="M000083-source">
356
417
  <pre>
357
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 138</span>
418
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 158</span>
358
419
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">image</span>
359
- <span class="ruby-identifier">set_brush</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;img&quot;</span>))
420
+ <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>)
360
421
  <span class="ruby-keyword kw">end</span>
361
422
  </pre>
362
423
  </div>
363
424
  </div>
364
425
  </div>
365
426
 
366
- <div id="method-M000060" class="method-detail">
367
- <a name="M000060"></a>
427
+ <div id="method-M000074" class="method-detail">
428
+ <a name="M000074"></a>
368
429
 
369
430
  <div class="method-heading">
370
- <a href="#M000060" class="method-signature">
431
+ <a href="#M000074" class="method-signature">
371
432
  <span class="method-name">image_button</span><span class="method-args">(*args, &amp;block)</span>
372
433
  </a>
373
434
  </div>
374
435
 
375
436
  <div class="method-description">
376
437
  <p><a class="source-toggle" href="#"
377
- onclick="toggleCode('M000060-source');return false;">[Source]</a></p>
378
- <div class="method-source-code" id="M000060-source">
438
+ onclick="toggleCode('M000074-source');return false;">[Source]</a></p>
439
+ <div class="method-source-code" id="M000074-source">
379
440
  <pre>
380
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 106</span>
441
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 122</span>
381
442
  <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>)
382
443
  <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>)
383
444
  <span class="ruby-keyword kw">end</span>
@@ -386,21 +447,21 @@ Alias for <a href="HtmlCanvas.html#M000069">text</a>
386
447
  </div>
387
448
  </div>
388
449
 
389
- <div id="method-M000054" class="method-detail">
390
- <a name="M000054"></a>
450
+ <div id="method-M000068" class="method-detail">
451
+ <a name="M000068"></a>
391
452
 
392
453
  <div class="method-heading">
393
- <a href="#M000054" class="method-signature">
454
+ <a href="#M000068" class="method-signature">
394
455
  <span class="method-name">input</span><span class="method-args">(*args, &amp;block)</span>
395
456
  </a>
396
457
  </div>
397
458
 
398
459
  <div class="method-description">
399
460
  <p><a class="source-toggle" href="#"
400
- onclick="toggleCode('M000054-source');return false;">[Source]</a></p>
401
- <div class="method-source-code" id="M000054-source">
461
+ onclick="toggleCode('M000068-source');return false;">[Source]</a></p>
462
+ <div class="method-source-code" id="M000068-source">
402
463
  <pre>
403
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 82</span>
464
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 98</span>
404
465
  <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>)
405
466
  <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>)
406
467
  <span class="ruby-keyword kw">end</span>
@@ -409,44 +470,67 @@ Alias for <a href="HtmlCanvas.html#M000069">text</a>
409
470
  </div>
410
471
  </div>
411
472
 
412
- <div id="method-M000046" class="method-detail">
413
- <a name="M000046"></a>
473
+ <div id="method-M000080" class="method-detail">
474
+ <a name="M000080"></a>
475
+
476
+ <div class="method-heading">
477
+ <a href="#M000080" class="method-signature">
478
+ <span class="method-name">javascript</span><span class="method-args">(*args, &amp;block)</span>
479
+ </a>
480
+ </div>
481
+
482
+ <div class="method-description">
483
+ <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">
486
+ <pre>
487
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 146</span>
488
+ <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
+ <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
+ <span class="ruby-keyword kw">end</span>
491
+ </pre>
492
+ </div>
493
+ </div>
494
+ </div>
495
+
496
+ <div id="method-M000084" class="method-detail">
497
+ <a name="M000084"></a>
414
498
 
415
499
  <div class="method-heading">
416
- <a href="#M000046" class="method-signature">
417
- <span class="method-name">method_missing</span><span class="method-args">(id, *args, &amp;block)</span>
500
+ <a href="#M000084" class="method-signature">
501
+ <span class="method-name">link_css</span><span class="method-args">(url)</span>
418
502
  </a>
419
503
  </div>
420
504
 
421
505
  <div class="method-description">
422
506
  <p><a class="source-toggle" href="#"
423
- onclick="toggleCode('M000046-source');return false;">[Source]</a></p>
424
- <div class="method-source-code" id="M000046-source">
507
+ onclick="toggleCode('M000084-source');return false;">[Source]</a></p>
508
+ <div class="method-source-code" id="M000084-source">
425
509
  <pre>
426
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 45</span>
427
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">method_missing</span>(<span class="ruby-identifier">id</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
428
- <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-identifier">id</span>.<span class="ruby-identifier">to_s</span>), <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
510
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 162</span>
511
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">link_css</span>(<span class="ruby-identifier">url</span>)
512
+ <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>)
429
513
  <span class="ruby-keyword kw">end</span>
430
514
  </pre>
431
515
  </div>
432
516
  </div>
433
517
  </div>
434
518
 
435
- <div id="method-M000057" class="method-detail">
436
- <a name="M000057"></a>
519
+ <div id="method-M000071" class="method-detail">
520
+ <a name="M000071"></a>
437
521
 
438
522
  <div class="method-heading">
439
- <a href="#M000057" class="method-signature">
523
+ <a href="#M000071" class="method-signature">
440
524
  <span class="method-name">option</span><span class="method-args">(*args, &amp;block)</span>
441
525
  </a>
442
526
  </div>
443
527
 
444
528
  <div class="method-description">
445
529
  <p><a class="source-toggle" href="#"
446
- onclick="toggleCode('M000057-source');return false;">[Source]</a></p>
447
- <div class="method-source-code" id="M000057-source">
530
+ onclick="toggleCode('M000071-source');return false;">[Source]</a></p>
531
+ <div class="method-source-code" id="M000071-source">
448
532
  <pre>
449
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 94</span>
533
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 110</span>
450
534
  <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>)
451
535
  <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>)
452
536
  <span class="ruby-keyword kw">end</span>
@@ -455,21 +539,21 @@ Alias for <a href="HtmlCanvas.html#M000069">text</a>
455
539
  </div>
456
540
  </div>
457
541
 
458
- <div id="method-M000062" class="method-detail">
459
- <a name="M000062"></a>
542
+ <div id="method-M000076" class="method-detail">
543
+ <a name="M000076"></a>
460
544
 
461
545
  <div class="method-heading">
462
- <a href="#M000062" class="method-signature">
546
+ <a href="#M000076" class="method-signature">
463
547
  <span class="method-name">page</span><span class="method-args">(*args, &amp;block)</span>
464
548
  </a>
465
549
  </div>
466
550
 
467
551
  <div class="method-description">
468
552
  <p><a class="source-toggle" href="#"
469
- onclick="toggleCode('M000062-source');return false;">[Source]</a></p>
470
- <div class="method-source-code" id="M000062-source">
553
+ onclick="toggleCode('M000076-source');return false;">[Source]</a></p>
554
+ <div class="method-source-code" id="M000076-source">
471
555
  <pre>
472
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 114</span>
556
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 130</span>
473
557
  <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>)
474
558
  <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>)
475
559
  <span class="ruby-keyword kw">end</span>
@@ -478,68 +562,67 @@ Alias for <a href="HtmlCanvas.html#M000069">text</a>
478
562
  </div>
479
563
  </div>
480
564
 
481
- <div id="method-M000066" class="method-detail">
482
- <a name="M000066"></a>
565
+ <div id="method-M000081" class="method-detail">
566
+ <a name="M000081"></a>
483
567
 
484
568
  <div class="method-heading">
485
- <a href="#M000066" class="method-signature">
569
+ <a href="#M000081" class="method-signature">
486
570
  <span class="method-name">paragraph</span><span class="method-args">()</span>
487
571
  </a>
488
572
  </div>
489
573
 
490
574
  <div class="method-description">
491
575
  <p><a class="source-toggle" href="#"
492
- onclick="toggleCode('M000066-source');return false;">[Source]</a></p>
493
- <div class="method-source-code" id="M000066-source">
576
+ onclick="toggleCode('M000081-source');return false;">[Source]</a></p>
577
+ <div class="method-source-code" id="M000081-source">
494
578
  <pre>
495
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 130</span>
579
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 150</span>
496
580
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">paragraph</span>
497
- <span class="ruby-identifier">set_brush</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;p&quot;</span>))
581
+ <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>))
498
582
  <span class="ruby-keyword kw">end</span>
499
583
  </pre>
500
584
  </div>
501
585
  </div>
502
586
  </div>
503
587
 
504
- <div id="method-M000048" class="method-detail">
505
- <a name="M000048"></a>
588
+ <div id="method-M000062" class="method-detail">
589
+ <a name="M000062"></a>
506
590
 
507
591
  <div class="method-heading">
508
- <a href="#M000048" class="method-signature">
509
- <span class="method-name">register_callback</span><span class="method-args">(type, &amp;block)</span>
592
+ <a href="#M000062" class="method-signature">
593
+ <span class="method-name">register_callback</span><span class="method-args">(type, callback)</span>
510
594
  </a>
511
595
  </div>
512
596
 
513
597
  <div class="method-description">
514
598
  <p><a class="source-toggle" href="#"
515
- onclick="toggleCode('M000048-source');return false;">[Source]</a></p>
516
- <div class="method-source-code" id="M000048-source">
599
+ onclick="toggleCode('M000062-source');return false;">[Source]</a></p>
600
+ <div class="method-source-code" id="M000062-source">
517
601
  <pre>
518
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 57</span>
519
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">register_callback</span>(<span class="ruby-identifier">type</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
520
- <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">&quot;no callback block given&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block</span>.<span class="ruby-identifier">nil?</span>
521
- <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-operator">&amp;</span><span class="ruby-identifier">block</span>)
602
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 74</span>
603
+ <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
+ <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>)
522
605
  <span class="ruby-keyword kw">end</span>
523
606
  </pre>
524
607
  </div>
525
608
  </div>
526
609
  </div>
527
610
 
528
- <div id="method-M000072" class="method-detail">
529
- <a name="M000072"></a>
611
+ <div id="method-M000088" class="method-detail">
612
+ <a name="M000088"></a>
530
613
 
531
614
  <div class="method-heading">
532
- <a href="#M000072" class="method-signature">
615
+ <a href="#M000088" class="method-signature">
533
616
  <span class="method-name">render</span><span class="method-args">(obj)</span>
534
617
  </a>
535
618
  </div>
536
619
 
537
620
  <div class="method-description">
538
621
  <p><a class="source-toggle" href="#"
539
- onclick="toggleCode('M000072-source');return false;">[Source]</a></p>
540
- <div class="method-source-code" id="M000072-source">
622
+ onclick="toggleCode('M000088-source');return false;">[Source]</a></p>
623
+ <div class="method-source-code" id="M000088-source">
541
624
  <pre>
542
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 151</span>
625
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 175</span>
543
626
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">render</span>(<span class="ruby-identifier">obj</span>)
544
627
  <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">close</span>
545
628
  <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">do_render_chain</span>(<span class="ruby-ivar">@rendering_context</span>)
@@ -550,21 +633,21 @@ Alias for <a href="HtmlCanvas.html#M000069">text</a>
550
633
  </div>
551
634
  </div>
552
635
 
553
- <div id="method-M000058" class="method-detail">
554
- <a name="M000058"></a>
636
+ <div id="method-M000072" class="method-detail">
637
+ <a name="M000072"></a>
555
638
 
556
639
  <div class="method-heading">
557
- <a href="#M000058" class="method-signature">
640
+ <a href="#M000072" class="method-signature">
558
641
  <span class="method-name">select_list</span><span class="method-args">(items)</span>
559
642
  </a>
560
643
  </div>
561
644
 
562
645
  <div class="method-description">
563
646
  <p><a class="source-toggle" href="#"
564
- onclick="toggleCode('M000058-source');return false;">[Source]</a></p>
565
- <div class="method-source-code" id="M000058-source">
647
+ onclick="toggleCode('M000072-source');return false;">[Source]</a></p>
648
+ <div class="method-source-code" id="M000072-source">
566
649
  <pre>
567
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 98</span>
650
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 114</span>
568
651
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">select_list</span>(<span class="ruby-identifier">items</span>)
569
652
  <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>))
570
653
  <span class="ruby-keyword kw">end</span>
@@ -573,21 +656,21 @@ Alias for <a href="HtmlCanvas.html#M000069">text</a>
573
656
  </div>
574
657
  </div>
575
658
 
576
- <div id="method-M000064" class="method-detail">
577
- <a name="M000064"></a>
659
+ <div id="method-M000078" class="method-detail">
660
+ <a name="M000078"></a>
578
661
 
579
662
  <div class="method-heading">
580
- <a href="#M000064" class="method-signature">
663
+ <a href="#M000078" class="method-signature">
581
664
  <span class="method-name">space</span><span class="method-args">(n=1)</span>
582
665
  </a>
583
666
  </div>
584
667
 
585
668
  <div class="method-description">
586
669
  <p><a class="source-toggle" href="#"
587
- onclick="toggleCode('M000064-source');return false;">[Source]</a></p>
588
- <div class="method-source-code" id="M000064-source">
670
+ onclick="toggleCode('M000078-source');return false;">[Source]</a></p>
671
+ <div class="method-source-code" id="M000078-source">
589
672
  <pre>
590
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 122</span>
673
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 138</span>
591
674
  <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>)
592
675
  <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>))
593
676
  <span class="ruby-keyword kw">end</span>
@@ -596,21 +679,21 @@ Alias for <a href="HtmlCanvas.html#M000069">text</a>
596
679
  </div>
597
680
  </div>
598
681
 
599
- <div id="method-M000059" class="method-detail">
600
- <a name="M000059"></a>
682
+ <div id="method-M000073" class="method-detail">
683
+ <a name="M000073"></a>
601
684
 
602
685
  <div class="method-heading">
603
- <a href="#M000059" class="method-signature">
686
+ <a href="#M000073" class="method-signature">
604
687
  <span class="method-name">submit_button</span><span class="method-args">(*args, &amp;block)</span>
605
688
  </a>
606
689
  </div>
607
690
 
608
691
  <div class="method-description">
609
692
  <p><a class="source-toggle" href="#"
610
- onclick="toggleCode('M000059-source');return false;">[Source]</a></p>
611
- <div class="method-source-code" id="M000059-source">
693
+ onclick="toggleCode('M000073-source');return false;">[Source]</a></p>
694
+ <div class="method-source-code" id="M000073-source">
612
695
  <pre>
613
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 102</span>
696
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 118</span>
614
697
  <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>)
615
698
  <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>)
616
699
  <span class="ruby-keyword kw">end</span>
@@ -619,21 +702,21 @@ Alias for <a href="HtmlCanvas.html#M000069">text</a>
619
702
  </div>
620
703
  </div>
621
704
 
622
- <div id="method-M000049" class="method-detail">
623
- <a name="M000049"></a>
705
+ <div id="method-M000063" class="method-detail">
706
+ <a name="M000063"></a>
624
707
 
625
708
  <div class="method-heading">
626
- <a href="#M000049" class="method-signature">
709
+ <a href="#M000063" class="method-signature">
627
710
  <span class="method-name">table</span><span class="method-args">(*args, &amp;block)</span>
628
711
  </a>
629
712
  </div>
630
713
 
631
714
  <div class="method-description">
632
715
  <p><a class="source-toggle" href="#"
633
- onclick="toggleCode('M000049-source');return false;">[Source]</a></p>
634
- <div class="method-source-code" id="M000049-source">
716
+ onclick="toggleCode('M000063-source');return false;">[Source]</a></p>
717
+ <div class="method-source-code" id="M000063-source">
635
718
  <pre>
636
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 62</span>
719
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 78</span>
637
720
  <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>)
638
721
  <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>)
639
722
  <span class="ruby-keyword kw">end</span>
@@ -642,21 +725,21 @@ Alias for <a href="HtmlCanvas.html#M000069">text</a>
642
725
  </div>
643
726
  </div>
644
727
 
645
- <div id="method-M000051" class="method-detail">
646
- <a name="M000051"></a>
728
+ <div id="method-M000065" class="method-detail">
729
+ <a name="M000065"></a>
647
730
 
648
731
  <div class="method-heading">
649
- <a href="#M000051" class="method-signature">
732
+ <a href="#M000065" class="method-signature">
650
733
  <span class="method-name">table_data</span><span class="method-args">(*args, &amp;block)</span>
651
734
  </a>
652
735
  </div>
653
736
 
654
737
  <div class="method-description">
655
738
  <p><a class="source-toggle" href="#"
656
- onclick="toggleCode('M000051-source');return false;">[Source]</a></p>
657
- <div class="method-source-code" id="M000051-source">
739
+ onclick="toggleCode('M000065-source');return false;">[Source]</a></p>
740
+ <div class="method-source-code" id="M000065-source">
658
741
  <pre>
659
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 70</span>
742
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 86</span>
660
743
  <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>)
661
744
  <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>)
662
745
  <span class="ruby-keyword kw">end</span>
@@ -665,21 +748,21 @@ Alias for <a href="HtmlCanvas.html#M000069">text</a>
665
748
  </div>
666
749
  </div>
667
750
 
668
- <div id="method-M000052" class="method-detail">
669
- <a name="M000052"></a>
751
+ <div id="method-M000066" class="method-detail">
752
+ <a name="M000066"></a>
670
753
 
671
754
  <div class="method-heading">
672
- <a href="#M000052" class="method-signature">
755
+ <a href="#M000066" class="method-signature">
673
756
  <span class="method-name">table_header</span><span class="method-args">(*args, &amp;block)</span>
674
757
  </a>
675
758
  </div>
676
759
 
677
760
  <div class="method-description">
678
761
  <p><a class="source-toggle" href="#"
679
- onclick="toggleCode('M000052-source');return false;">[Source]</a></p>
680
- <div class="method-source-code" id="M000052-source">
762
+ onclick="toggleCode('M000066-source');return false;">[Source]</a></p>
763
+ <div class="method-source-code" id="M000066-source">
681
764
  <pre>
682
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 74</span>
765
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 90</span>
683
766
  <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>)
684
767
  <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>)
685
768
  <span class="ruby-keyword kw">end</span>
@@ -688,21 +771,21 @@ Alias for <a href="HtmlCanvas.html#M000069">text</a>
688
771
  </div>
689
772
  </div>
690
773
 
691
- <div id="method-M000050" class="method-detail">
692
- <a name="M000050"></a>
774
+ <div id="method-M000064" class="method-detail">
775
+ <a name="M000064"></a>
693
776
 
694
777
  <div class="method-heading">
695
- <a href="#M000050" class="method-signature">
778
+ <a href="#M000064" class="method-signature">
696
779
  <span class="method-name">table_row</span><span class="method-args">(*args, &amp;block)</span>
697
780
  </a>
698
781
  </div>
699
782
 
700
783
  <div class="method-description">
701
784
  <p><a class="source-toggle" href="#"
702
- onclick="toggleCode('M000050-source');return false;">[Source]</a></p>
703
- <div class="method-source-code" id="M000050-source">
785
+ onclick="toggleCode('M000064-source');return false;">[Source]</a></p>
786
+ <div class="method-source-code" id="M000064-source">
704
787
  <pre>
705
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 66</span>
788
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 82</span>
706
789
  <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>)
707
790
  <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>)
708
791
  <span class="ruby-keyword kw">end</span>
@@ -711,21 +794,21 @@ Alias for <a href="HtmlCanvas.html#M000069">text</a>
711
794
  </div>
712
795
  </div>
713
796
 
714
- <div id="method-M000069" class="method-detail">
715
- <a name="M000069"></a>
797
+ <div id="method-M000085" class="method-detail">
798
+ <a name="M000085"></a>
716
799
 
717
800
  <div class="method-heading">
718
- <a href="#M000069" class="method-signature">
801
+ <a href="#M000085" class="method-signature">
719
802
  <span class="method-name">text</span><span class="method-args">(str)</span>
720
803
  </a>
721
804
  </div>
722
805
 
723
806
  <div class="method-description">
724
807
  <p><a class="source-toggle" href="#"
725
- onclick="toggleCode('M000069-source');return false;">[Source]</a></p>
726
- <div class="method-source-code" id="M000069-source">
808
+ onclick="toggleCode('M000085-source');return false;">[Source]</a></p>
809
+ <div class="method-source-code" id="M000085-source">
727
810
  <pre>
728
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 142</span>
811
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 166</span>
729
812
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">text</span>(<span class="ruby-identifier">str</span>)
730
813
  <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>))
731
814
  <span class="ruby-keyword kw">end</span>
@@ -734,21 +817,21 @@ Alias for <a href="HtmlCanvas.html#M000069">text</a>
734
817
  </div>
735
818
  </div>
736
819
 
737
- <div id="method-M000056" class="method-detail">
738
- <a name="M000056"></a>
820
+ <div id="method-M000070" class="method-detail">
821
+ <a name="M000070"></a>
739
822
 
740
823
  <div class="method-heading">
741
- <a href="#M000056" class="method-signature">
824
+ <a href="#M000070" class="method-signature">
742
825
  <span class="method-name">text_area</span><span class="method-args">(*args, &amp;block)</span>
743
826
  </a>
744
827
  </div>
745
828
 
746
829
  <div class="method-description">
747
830
  <p><a class="source-toggle" href="#"
748
- onclick="toggleCode('M000056-source');return false;">[Source]</a></p>
749
- <div class="method-source-code" id="M000056-source">
831
+ onclick="toggleCode('M000070-source');return false;">[Source]</a></p>
832
+ <div class="method-source-code" id="M000070-source">
750
833
  <pre>
751
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 90</span>
834
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 106</span>
752
835
  <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>)
753
836
  <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>)
754
837
  <span class="ruby-keyword kw">end</span>
@@ -757,21 +840,21 @@ Alias for <a href="HtmlCanvas.html#M000069">text</a>
757
840
  </div>
758
841
  </div>
759
842
 
760
- <div id="method-M000055" class="method-detail">
761
- <a name="M000055"></a>
843
+ <div id="method-M000069" class="method-detail">
844
+ <a name="M000069"></a>
762
845
 
763
846
  <div class="method-heading">
764
- <a href="#M000055" class="method-signature">
847
+ <a href="#M000069" class="method-signature">
765
848
  <span class="method-name">text_input</span><span class="method-args">(*args, &amp;block)</span>
766
849
  </a>
767
850
  </div>
768
851
 
769
852
  <div class="method-description">
770
853
  <p><a class="source-toggle" href="#"
771
- onclick="toggleCode('M000055-source');return false;">[Source]</a></p>
772
- <div class="method-source-code" id="M000055-source">
854
+ onclick="toggleCode('M000069-source');return false;">[Source]</a></p>
855
+ <div class="method-source-code" id="M000069-source">
773
856
  <pre>
774
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 86</span>
857
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 102</span>
775
858
  <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>)
776
859
  <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>)
777
860
  <span class="ruby-keyword kw">end</span>
@@ -780,26 +863,24 @@ Alias for <a href="HtmlCanvas.html#M000069">text</a>
780
863
  </div>
781
864
  </div>
782
865
 
783
- <div id="method-M000047" class="method-detail">
784
- <a name="M000047"></a>
866
+ <div id="method-M000061" class="method-detail">
867
+ <a name="M000061"></a>
785
868
 
786
869
  <div class="method-heading">
787
- <a href="#M000047" class="method-signature">
788
- <span class="method-name">url_for_callback</span><span class="method-args">(symbol=nil, &amp;block)</span>
870
+ <a href="#M000061" class="method-signature">
871
+ <span class="method-name">url_for_callback</span><span class="method-args">(callback)</span>
789
872
  </a>
790
873
  </div>
791
874
 
792
875
  <div class="method-description">
793
876
  <p><a class="source-toggle" href="#"
794
- onclick="toggleCode('M000047-source');return false;">[Source]</a></p>
795
- <div class="method-source-code" id="M000047-source">
877
+ onclick="toggleCode('M000061-source');return false;">[Source]</a></p>
878
+ <div class="method-source-code" id="M000061-source">
796
879
  <pre>
797
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 49</span>
798
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">url_for_callback</span>(<span class="ruby-identifier">symbol</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
799
- <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">symbol</span> <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">block</span>
800
- <span class="ruby-identifier">block</span> = <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">current_component</span>.<span class="ruby-identifier">method</span>(<span class="ruby-identifier">symbol</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">block</span>
880
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 68</span>
881
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">url_for_callback</span>(<span class="ruby-identifier">callback</span>)
801
882
  <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>
802
- <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-operator">&amp;</span><span class="ruby-identifier">block</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>))
803
884
  <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">url</span>
804
885
  <span class="ruby-keyword kw">end</span>
805
886
  </pre>
@@ -809,21 +890,21 @@ Alias for <a href="HtmlCanvas.html#M000069">text</a>
809
890
 
810
891
  <h3 class="section-bar">Private Instance methods</h3>
811
892
 
812
- <div id="method-M000073" class="method-detail">
813
- <a name="M000073"></a>
893
+ <div id="method-M000089" class="method-detail">
894
+ <a name="M000089"></a>
814
895
 
815
896
  <div class="method-heading">
816
- <a href="#M000073" class="method-signature">
897
+ <a href="#M000089" class="method-signature">
817
898
  <span class="method-name">handle</span><span class="method-args">(brush, *args, &amp;block)</span>
818
899
  </a>
819
900
  </div>
820
901
 
821
902
  <div class="method-description">
822
903
  <p><a class="source-toggle" href="#"
823
- onclick="toggleCode('M000073-source');return false;">[Source]</a></p>
824
- <div class="method-source-code" id="M000073-source">
904
+ onclick="toggleCode('M000089-source');return false;">[Source]</a></p>
905
+ <div class="method-source-code" id="M000089-source">
825
906
  <pre>
826
- <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 159</span>
907
+ <span class="ruby-comment cmt"># File lib/wee/renderer/html/canvas.rb, line 183</span>
827
908
  <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>)
828
909
  <span class="ruby-identifier">set_brush</span>(<span class="ruby-identifier">brush</span>)
829
910
  <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>