mack-javascript 0.6.1.1 → 0.6.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. data/doc/classes/JavascriptGenerator.html +162 -0
  2. data/doc/classes/Mack.html +141 -0
  3. data/doc/classes/Mack/JavaScript/Framework/Jquery.html +491 -0
  4. data/doc/classes/Mack/JavaScript/Framework/Prototype.html +438 -0
  5. data/doc/classes/Mack/JavaScript/ScriptGenerator.html +367 -0
  6. data/doc/classes/Mack/Rendering/Engine/Rjs.html +185 -0
  7. data/doc/classes/Mack/Rendering/Engine/Rjs/ViewTemplateHelpers.html +140 -0
  8. data/doc/classes/Mack/Rendering/Type/Js.html +180 -0
  9. data/doc/classes/Mack/Testing/Helpers.html +144 -0
  10. data/doc/classes/Mack/ViewHelpers/HtmlHelpers.html +240 -0
  11. data/doc/classes/Mack/ViewHelpers/StringHelpers.html +143 -0
  12. data/doc/created.rid +1 -0
  13. data/doc/files/README.html +111 -0
  14. data/doc/files/lib/mack-javascript/generators/javascript_generator_rb.html +113 -0
  15. data/doc/files/lib/mack-javascript/helpers/jquery_helper_rb.html +101 -0
  16. data/doc/files/lib/mack-javascript/helpers/prototype_helper_rb.html +101 -0
  17. data/doc/files/lib/mack-javascript/helpers/script_generator_rb.html +101 -0
  18. data/doc/files/lib/mack-javascript/helpers/testing_helpers_rb.html +101 -0
  19. data/doc/files/lib/mack-javascript/rendering/engine/rjs_rb.html +101 -0
  20. data/doc/files/lib/mack-javascript/rendering/type/js_rb.html +101 -0
  21. data/doc/files/lib/mack-javascript/view_helpers/html_helpers_rb.html +101 -0
  22. data/doc/files/lib/mack-javascript/view_helpers/string_helpers_rb.html +101 -0
  23. data/doc/files/lib/mack-javascript_rb.html +107 -0
  24. data/doc/fr_class_index.html +41 -0
  25. data/doc/fr_file_index.html +37 -0
  26. data/doc/fr_method_index.html +69 -0
  27. data/doc/index.html +24 -0
  28. data/doc/rdoc-style.css +208 -0
  29. metadata +30 -2
@@ -0,0 +1,185 @@
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: Mack::Rendering::Engine::Rjs</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">Mack::Rendering::Engine::Rjs</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../../../files/lib/mack-javascript/rendering/engine/rjs_rb.html">
59
+ lib/mack-javascript/rendering/engine/rjs.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
+ Mack::Rendering::Engine::Base
69
+ </td>
70
+ </tr>
71
+ </table>
72
+ </div>
73
+ <!-- banner header -->
74
+
75
+ <div id="bodyContent">
76
+
77
+
78
+
79
+ <div id="contextContent">
80
+
81
+ <div id="description">
82
+ <p>
83
+ Allows use of the Builder::XmlMarkup engine to be used with rendering.
84
+ </p>
85
+
86
+ </div>
87
+
88
+
89
+ </div>
90
+
91
+ <div id="method-list">
92
+ <h3 class="section-bar">Methods</h3>
93
+
94
+ <div class="name-list">
95
+ <a href="#M000008">extension</a>&nbsp;&nbsp;
96
+ <a href="#M000007">render</a>&nbsp;&nbsp;
97
+ </div>
98
+ </div>
99
+
100
+ </div>
101
+
102
+
103
+ <!-- if includes -->
104
+
105
+ <div id="section">
106
+
107
+ <div id="class-list">
108
+ <h3 class="section-bar">Classes and Modules</h3>
109
+
110
+ Module <a href="Rjs/ViewTemplateHelpers.html" class="link">Mack::Rendering::Engine::Rjs::ViewTemplateHelpers</a><br />
111
+
112
+ </div>
113
+
114
+
115
+
116
+
117
+
118
+
119
+
120
+ <!-- if method_list -->
121
+ <div id="methods">
122
+ <h3 class="section-bar">Public Instance methods</h3>
123
+
124
+ <div id="method-M000008" class="method-detail">
125
+ <a name="M000008"></a>
126
+
127
+ <div class="method-heading">
128
+ <a href="#M000008" class="method-signature">
129
+ <span class="method-name">extension</span><span class="method-args">()</span>
130
+ </a>
131
+ </div>
132
+
133
+ <div class="method-description">
134
+ <p><a class="source-toggle" href="#"
135
+ onclick="toggleCode('M000008-source');return false;">[Source]</a></p>
136
+ <div class="method-source-code" id="M000008-source">
137
+ <pre>
138
+ <span class="ruby-comment cmt"># File lib/mack-javascript/rendering/engine/rjs.rb, line 14</span>
139
+ 14: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">extension</span>
140
+ 15: <span class="ruby-identifier">:rjs</span>
141
+ 16: <span class="ruby-keyword kw">end</span>
142
+ </pre>
143
+ </div>
144
+ </div>
145
+ </div>
146
+
147
+ <div id="method-M000007" class="method-detail">
148
+ <a name="M000007"></a>
149
+
150
+ <div class="method-heading">
151
+ <a href="#M000007" class="method-signature">
152
+ <span class="method-name">render</span><span class="method-args">(io, binding)</span>
153
+ </a>
154
+ </div>
155
+
156
+ <div class="method-description">
157
+ <p><a class="source-toggle" href="#"
158
+ onclick="toggleCode('M000007-source');return false;">[Source]</a></p>
159
+ <div class="method-source-code" id="M000007-source">
160
+ <pre>
161
+ <span class="ruby-comment cmt"># File lib/mack-javascript/rendering/engine/rjs.rb, line 7</span>
162
+ 7: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">render</span>(<span class="ruby-identifier">io</span>, <span class="ruby-identifier">binding</span>)
163
+ 8: <span class="ruby-ivar">@_jsp_page</span> = <span class="ruby-constant">Mack</span><span class="ruby-operator">::</span><span class="ruby-constant">JavaScript</span><span class="ruby-operator">::</span><span class="ruby-constant">ScriptGenerator</span>.<span class="ruby-identifier">new</span>
164
+ 9: <span class="ruby-identifier">view_template</span>.<span class="ruby-identifier">instance_variable_set</span>(<span class="ruby-value str">&quot;@_jsp_page&quot;</span>, <span class="ruby-ivar">@_jsp_page</span>)
165
+ 10: <span class="ruby-identifier">eval</span>(<span class="ruby-identifier">io</span>, <span class="ruby-identifier">binding</span>)
166
+ 11: <span class="ruby-ivar">@_jsp_page</span>.<span class="ruby-identifier">to_s</span>
167
+ 12: <span class="ruby-keyword kw">end</span>
168
+ </pre>
169
+ </div>
170
+ </div>
171
+ </div>
172
+
173
+
174
+ </div>
175
+
176
+
177
+ </div>
178
+
179
+
180
+ <div id="validator-badges">
181
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
182
+ </div>
183
+
184
+ </body>
185
+ </html>
@@ -0,0 +1,140 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Module: Mack::Rendering::Engine::Rjs::ViewTemplateHelpers</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Module</strong></td>
53
+ <td class="class-name-in-header">Mack::Rendering::Engine::Rjs::ViewTemplateHelpers</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../../../../files/lib/mack-javascript/rendering/engine/rjs_rb.html">
59
+ lib/mack-javascript/rendering/engine/rjs.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ </table>
66
+ </div>
67
+ <!-- banner header -->
68
+
69
+ <div id="bodyContent">
70
+
71
+
72
+
73
+ <div id="contextContent">
74
+
75
+
76
+
77
+ </div>
78
+
79
+ <div id="method-list">
80
+ <h3 class="section-bar">Methods</h3>
81
+
82
+ <div class="name-list">
83
+ <a href="#M000009">page</a>&nbsp;&nbsp;
84
+ </div>
85
+ </div>
86
+
87
+ </div>
88
+
89
+
90
+ <!-- if includes -->
91
+
92
+ <div id="section">
93
+
94
+
95
+
96
+
97
+
98
+
99
+
100
+
101
+ <!-- if method_list -->
102
+ <div id="methods">
103
+ <h3 class="section-bar">Public Instance methods</h3>
104
+
105
+ <div id="method-M000009" class="method-detail">
106
+ <a name="M000009"></a>
107
+
108
+ <div class="method-heading">
109
+ <a href="#M000009" class="method-signature">
110
+ <span class="method-name">page</span><span class="method-args">()</span>
111
+ </a>
112
+ </div>
113
+
114
+ <div class="method-description">
115
+ <p><a class="source-toggle" href="#"
116
+ onclick="toggleCode('M000009-source');return false;">[Source]</a></p>
117
+ <div class="method-source-code" id="M000009-source">
118
+ <pre>
119
+ <span class="ruby-comment cmt"># File lib/mack-javascript/rendering/engine/rjs.rb, line 19</span>
120
+ 19: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">page</span>
121
+ 20: <span class="ruby-ivar">@_jsp_page</span>
122
+ 21: <span class="ruby-keyword kw">end</span>
123
+ </pre>
124
+ </div>
125
+ </div>
126
+ </div>
127
+
128
+
129
+ </div>
130
+
131
+
132
+ </div>
133
+
134
+
135
+ <div id="validator-badges">
136
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
137
+ </div>
138
+
139
+ </body>
140
+ </html>
@@ -0,0 +1,180 @@
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: Mack::Rendering::Type::Js</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">Mack::Rendering::Type::Js</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../../../files/lib/mack-javascript/rendering/type/js_rb.html">
59
+ lib/mack-javascript/rendering/type/js.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
+ Mack::Rendering::Type::FileBase
69
+ </td>
70
+ </tr>
71
+ </table>
72
+ </div>
73
+ <!-- banner header -->
74
+
75
+ <div id="bodyContent">
76
+
77
+
78
+
79
+ <div id="contextContent">
80
+
81
+ <div id="description">
82
+ <p>
83
+ Used to <a href="Js.html#M000010">render</a> an XML template that&#8216;s
84
+ relative to a controller.
85
+ </p>
86
+ <p>
87
+ Example:
88
+ </p>
89
+ <pre>
90
+ class UsersController &lt; Mack::Controller::Base
91
+ # /users/:id
92
+ def show
93
+ @user = User.first(params(:id))
94
+ end
95
+ # /users
96
+ def index
97
+ @users = User.all
98
+ render(:xml, :list)
99
+ end
100
+ end
101
+ </pre>
102
+ <p>
103
+ When some calls /users/1.xml the file: app/views/users/show.xml.builder
104
+ will be rendered. When some calls /users.xml the file:
105
+ app/views/users/list.xml.builder will be rendered.
106
+ </p>
107
+
108
+ </div>
109
+
110
+
111
+ </div>
112
+
113
+ <div id="method-list">
114
+ <h3 class="section-bar">Methods</h3>
115
+
116
+ <div class="name-list">
117
+ <a href="#M000010">render</a>&nbsp;&nbsp;
118
+ </div>
119
+ </div>
120
+
121
+ </div>
122
+
123
+
124
+ <!-- if includes -->
125
+
126
+ <div id="section">
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+ <!-- if method_list -->
136
+ <div id="methods">
137
+ <h3 class="section-bar">Public Instance methods</h3>
138
+
139
+ <div id="method-M000010" class="method-detail">
140
+ <a name="M000010"></a>
141
+
142
+ <div class="method-heading">
143
+ <a href="#M000010" class="method-signature">
144
+ <span class="method-name">render</span><span class="method-args">()</span>
145
+ </a>
146
+ </div>
147
+
148
+ <div class="method-description">
149
+ <p>
150
+ See Mack::Rendering::Type::FileBase render_file for more information.
151
+ </p>
152
+ <p><a class="source-toggle" href="#"
153
+ onclick="toggleCode('M000010-source');return false;">[Source]</a></p>
154
+ <div class="method-source-code" id="M000010-source">
155
+ <pre>
156
+ <span class="ruby-comment cmt"># File lib/mack-javascript/rendering/type/js.rb, line 23</span>
157
+ 23: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">render</span>
158
+ 24: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">options</span>[<span class="ruby-identifier">:format</span>] = <span class="ruby-value str">&quot;js&quot;</span>
159
+ 25: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">controller</span>.<span class="ruby-identifier">response</span>[<span class="ruby-value str">&quot;Content-Type&quot;</span>] = <span class="ruby-constant">Mack</span><span class="ruby-operator">::</span><span class="ruby-constant">Utils</span><span class="ruby-operator">::</span><span class="ruby-constant">MimeTypes</span>[<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">options</span>[<span class="ruby-identifier">:format</span>]]
160
+ 26: <span class="ruby-identifier">x_file</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">controller_view_path</span>, <span class="ruby-node">&quot;#{self.render_value}.#{self.options[:format]}&quot;</span>)
161
+ 27: <span class="ruby-identifier">render_file</span>(<span class="ruby-identifier">x_file</span>, <span class="ruby-identifier">:js</span>)
162
+ 28: <span class="ruby-keyword kw">end</span>
163
+ </pre>
164
+ </div>
165
+ </div>
166
+ </div>
167
+
168
+
169
+ </div>
170
+
171
+
172
+ </div>
173
+
174
+
175
+ <div id="validator-badges">
176
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
177
+ </div>
178
+
179
+ </body>
180
+ </html>