ymdp 0.9.2 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. data/Gemfile +2 -1
  2. data/VERSION +1 -1
  3. data/doc/ActionView.html +175 -0
  4. data/doc/ActionView/Helpers.html +175 -0
  5. data/doc/ActionView/Helpers/TagHelper.html +439 -0
  6. data/doc/Application.html +295 -0
  7. data/doc/LICENSE.html +158 -0
  8. data/doc/Object.html +218 -0
  9. data/doc/README_rdoc.html +147 -0
  10. data/doc/YMDP.html +232 -0
  11. data/doc/YMDP/ApplicationView.html +563 -0
  12. data/doc/YMDP/AssetTagHelper.html +235 -0
  13. data/doc/YMDP/Base.html +560 -0
  14. data/doc/YMDP/Compiler.html +178 -0
  15. data/doc/YMDP/Compiler/Base.html +1181 -0
  16. data/doc/YMDP/Compiler/Domains.html +493 -0
  17. data/doc/YMDP/Compiler/Options.html +265 -0
  18. data/doc/YMDP/Compiler/Template.html +175 -0
  19. data/doc/YMDP/Compiler/Template/Base.html +911 -0
  20. data/doc/YMDP/Compiler/Template/CoffeeScript.html +236 -0
  21. data/doc/YMDP/Compiler/Template/JavaScript.html +237 -0
  22. data/doc/YMDP/Compiler/Template/View.html +495 -0
  23. data/doc/YMDP/Compiler/Template/YRB.html +469 -0
  24. data/doc/YMDP/Configuration.html +175 -0
  25. data/doc/YMDP/Configuration/Base.html +426 -0
  26. data/doc/YMDP/Configuration/Config.html +553 -0
  27. data/doc/YMDP/Configuration/Servers.html +265 -0
  28. data/doc/YMDP/Configuration/Setter.html +580 -0
  29. data/doc/YMDP/FormTagHelper.html +298 -0
  30. data/doc/YMDP/GitHelper.html +298 -0
  31. data/doc/YMDP/LinkTagHelper.html +299 -0
  32. data/doc/YMDP/View.html +239 -0
  33. data/doc/created.rid +18 -0
  34. data/doc/images/add.png +0 -0
  35. data/doc/images/brick.png +0 -0
  36. data/doc/images/brick_link.png +0 -0
  37. data/doc/images/bug.png +0 -0
  38. data/doc/images/bullet_black.png +0 -0
  39. data/doc/images/bullet_toggle_minus.png +0 -0
  40. data/doc/images/bullet_toggle_plus.png +0 -0
  41. data/doc/images/date.png +0 -0
  42. data/doc/images/delete.png +0 -0
  43. data/doc/images/find.png +0 -0
  44. data/doc/images/loadingAnimation.gif +0 -0
  45. data/doc/images/macFFBgHack.png +0 -0
  46. data/doc/images/package.png +0 -0
  47. data/doc/images/page_green.png +0 -0
  48. data/doc/images/page_white_text.png +0 -0
  49. data/doc/images/page_white_width.png +0 -0
  50. data/doc/images/plugin.png +0 -0
  51. data/doc/images/ruby.png +0 -0
  52. data/doc/images/tag_blue.png +0 -0
  53. data/doc/images/tag_green.png +0 -0
  54. data/doc/images/transparent.png +0 -0
  55. data/doc/images/wrench.png +0 -0
  56. data/doc/images/wrench_orange.png +0 -0
  57. data/doc/images/zoom.png +0 -0
  58. data/doc/index.html +134 -0
  59. data/doc/js/darkfish.js +153 -0
  60. data/doc/js/jquery.js +18 -0
  61. data/doc/js/navigation.js +142 -0
  62. data/doc/js/search.js +94 -0
  63. data/doc/js/search_index.js +1 -0
  64. data/doc/js/searcher.js +228 -0
  65. data/doc/rdoc.css +543 -0
  66. data/doc/table_of_contents.html +401 -0
  67. data/lib/ymdp/compiler/template.rb +5 -1
  68. data/lib/ymdp/view/application_view.rb +10 -5
  69. data/ymdp.gemspec +69 -2
  70. metadata +120 -42
@@ -0,0 +1,495 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>class YMDP::Compiler::Template::View - RDoc Documentation</title>
8
+
9
+ <link type="text/css" media="screen" href="../../../rdoc.css" rel="stylesheet">
10
+
11
+ <script type="text/javascript">
12
+ var rdoc_rel_prefix = "../../../";
13
+ </script>
14
+
15
+ <script type="text/javascript" charset="utf-8" src="../../../js/jquery.js"></script>
16
+ <script type="text/javascript" charset="utf-8" src="../../../js/navigation.js"></script>
17
+ <script type="text/javascript" charset="utf-8" src="../../../js/search_index.js"></script>
18
+ <script type="text/javascript" charset="utf-8" src="../../../js/search.js"></script>
19
+ <script type="text/javascript" charset="utf-8" src="../../../js/searcher.js"></script>
20
+ <script type="text/javascript" charset="utf-8" src="../../../js/darkfish.js"></script>
21
+
22
+
23
+ <body id="top" class="class">
24
+ <nav id="metadata">
25
+ <nav id="home-section" class="section">
26
+ <h3 class="section-header">
27
+ <a href="../../../index.html">Home</a>
28
+ <a href="../../../table_of_contents.html#classes">Classes</a>
29
+ <a href="../../../table_of_contents.html#methods">Methods</a>
30
+ </h3>
31
+ </nav>
32
+
33
+
34
+ <nav id="search-section" class="section project-section" class="initially-hidden">
35
+ <form action="#" method="get" accept-charset="utf-8">
36
+ <h3 class="section-header">
37
+ <input type="text" name="search" placeholder="Search" id="search-field"
38
+ title="Type to search, Up and Down to navigate, Enter to load">
39
+ </h3>
40
+ </form>
41
+
42
+ <ul id="search-results" class="initially-hidden"></ul>
43
+ </nav>
44
+
45
+
46
+ <div id="file-metadata">
47
+ <nav id="file-list-section" class="section">
48
+ <h3 class="section-header">Defined In</h3>
49
+ <ul>
50
+ <li>lib/ymdp/compiler/template.rb
51
+ </ul>
52
+ </nav>
53
+
54
+
55
+ </div>
56
+
57
+ <div id="class-metadata">
58
+
59
+ <nav id="parent-class-section" class="section">
60
+ <h3 class="section-header">Parent</h3>
61
+
62
+ <p class="link"><a href="Base.html">YMDP::Compiler::Template::Base</a>
63
+
64
+ </nav>
65
+
66
+ <!-- Included Modules -->
67
+ <nav id="includes-section" class="section">
68
+ <h3 class="section-header">Included Modules</h3>
69
+
70
+ <ul class="link-list">
71
+
72
+
73
+ <li><a class="include" href="../../../ActionView/Helpers/TagHelper.html">ActionView::Helpers::TagHelper</a>
74
+
75
+
76
+
77
+ <li><span class="include">ApplicationHelper</span>
78
+
79
+
80
+
81
+ <li><a class="include" href="../../ApplicationView.html">YMDP::ApplicationView</a>
82
+
83
+
84
+
85
+ <li><a class="include" href="../../AssetTagHelper.html">YMDP::AssetTagHelper</a>
86
+
87
+
88
+
89
+ <li><a class="include" href="../../FormTagHelper.html">YMDP::FormTagHelper</a>
90
+
91
+
92
+
93
+ <li><a class="include" href="../../LinkTagHelper.html">YMDP::LinkTagHelper</a>
94
+
95
+
96
+ </ul>
97
+ </nav>
98
+
99
+ <!-- Method Quickref -->
100
+ <nav id="method-list-section" class="section">
101
+ <h3 class="section-header">Methods</h3>
102
+
103
+ <ul class="link-list">
104
+
105
+ <li><a href="#method-i-base_filename">#base_filename</a>
106
+
107
+ <li><a href="#method-i-convert_filename">#convert_filename</a>
108
+
109
+ <li><a href="#method-i-process_coffee">#process_coffee</a>
110
+
111
+ <li><a href="#method-i-process_haml">#process_haml</a>
112
+
113
+ <li><a href="#method-i-process_template">#process_template</a>
114
+
115
+ <li><a href="#method-i-validator">#validator</a>
116
+
117
+ <li><a href="#method-i-write_template">#write_template</a>
118
+
119
+ </ul>
120
+ </nav>
121
+
122
+ </div>
123
+
124
+ <div id="project-metadata">
125
+ <nav id="fileindex-section" class="section project-section">
126
+ <h3 class="section-header">Pages</h3>
127
+
128
+ <ul>
129
+
130
+ <li class="file"><a href="../../../LICENSE.html">LICENSE</a>
131
+
132
+ <li class="file"><a href="../../../README_rdoc.html">README</a>
133
+
134
+ </ul>
135
+ </nav>
136
+
137
+ <nav id="classindex-section" class="section project-section">
138
+ <h3 class="section-header">Class and Module Index</h3>
139
+
140
+ <ul class="link-list">
141
+
142
+ <li><a href="../../../YMDP.html">YMDP</a>
143
+
144
+ <li><a href="../../../YMDP/ApplicationView.html">YMDP::ApplicationView</a>
145
+
146
+ <li><a href="../../../YMDP/AssetTagHelper.html">YMDP::AssetTagHelper</a>
147
+
148
+ <li><a href="../../../YMDP/Base.html">YMDP::Base</a>
149
+
150
+ <li><a href="../../../YMDP/Compiler.html">YMDP::Compiler</a>
151
+
152
+ <li><a href="../../../YMDP/Compiler/Base.html">YMDP::Compiler::Base</a>
153
+
154
+ <li><a href="../../../YMDP/Compiler/Domains.html">YMDP::Compiler::Domains</a>
155
+
156
+ <li><a href="../../../YMDP/Compiler/Options.html">YMDP::Compiler::Options</a>
157
+
158
+ <li><a href="../../../YMDP/Compiler/Template.html">YMDP::Compiler::Template</a>
159
+
160
+ <li><a href="../../../YMDP/Compiler/Template/Base.html">YMDP::Compiler::Template::Base</a>
161
+
162
+ <li><a href="../../../YMDP/Compiler/Template/CoffeeScript.html">YMDP::Compiler::Template::CoffeeScript</a>
163
+
164
+ <li><a href="../../../YMDP/Compiler/Template/JavaScript.html">YMDP::Compiler::Template::JavaScript</a>
165
+
166
+ <li><a href="../../../YMDP/Compiler/Template/View.html">YMDP::Compiler::Template::View</a>
167
+
168
+ <li><a href="../../../YMDP/Compiler/Template/YRB.html">YMDP::Compiler::Template::YRB</a>
169
+
170
+ <li><a href="../../../YMDP/Configuration.html">YMDP::Configuration</a>
171
+
172
+ <li><a href="../../../YMDP/Configuration/Base.html">YMDP::Configuration::Base</a>
173
+
174
+ <li><a href="../../../YMDP/Configuration/Config.html">YMDP::Configuration::Config</a>
175
+
176
+ <li><a href="../../../YMDP/Configuration/Servers.html">YMDP::Configuration::Servers</a>
177
+
178
+ <li><a href="../../../YMDP/Configuration/Setter.html">YMDP::Configuration::Setter</a>
179
+
180
+ <li><a href="../../../YMDP/FormTagHelper.html">YMDP::FormTagHelper</a>
181
+
182
+ <li><a href="../../../YMDP/GitHelper.html">YMDP::GitHelper</a>
183
+
184
+ <li><a href="../../../YMDP/LinkTagHelper.html">YMDP::LinkTagHelper</a>
185
+
186
+ <li><a href="../../../YMDP/View.html">YMDP::View</a>
187
+
188
+ <li><a href="../../../ActionView.html">ActionView</a>
189
+
190
+ <li><a href="../../../ActionView/Helpers.html">ActionView::Helpers</a>
191
+
192
+ <li><a href="../../../ActionView/Helpers/TagHelper.html">ActionView::Helpers::TagHelper</a>
193
+
194
+ <li><a href="../../../Application.html">Application</a>
195
+
196
+ <li><a href="../../../Object.html">Object</a>
197
+
198
+ </ul>
199
+ </nav>
200
+
201
+ </div>
202
+ </nav>
203
+
204
+ <div id="documentation">
205
+ <h1 class="class">class YMDP::Compiler::Template::View</h1>
206
+
207
+ <div id="description" class="description">
208
+
209
+ </div><!-- description -->
210
+
211
+
212
+
213
+
214
+ <section id="5Buntitled-5D" class="documentation-section">
215
+
216
+
217
+
218
+
219
+
220
+
221
+
222
+ <!-- Attributes -->
223
+ <section id="attribute-method-details" class="method-section section">
224
+ <h3 class="section-header">Attributes</h3>
225
+
226
+
227
+ <div id="attribute-i-output_buffer" class="method-detail">
228
+ <div class="method-heading attribute-method-heading">
229
+ <span class="method-name">output_buffer</span><span
230
+ class="attribute-access-type">[RW]</span>
231
+ </div>
232
+
233
+ <div class="method-description">
234
+
235
+
236
+
237
+ </div>
238
+ </div>
239
+
240
+ </section><!-- attribute-method-details -->
241
+
242
+
243
+ <!-- Methods -->
244
+
245
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
246
+ <h3 class="section-header">Public Instance Methods</h3>
247
+
248
+
249
+ <div id="method-i-base_filename" class="method-detail ">
250
+
251
+ <div class="method-heading">
252
+ <span class="method-name">base_filename</span><span
253
+ class="method-args">(filename)</span>
254
+ <span class="method-click-advice">click to toggle source</span>
255
+ </div>
256
+
257
+
258
+ <div class="method-description">
259
+
260
+ <p>Filename without its extension:</p>
261
+ <ul><li>
262
+ <p>“authorize.html.haml” becomes “authorize”</p>
263
+ </li></ul>
264
+
265
+
266
+
267
+ <div class="method-source-code" id="base_filename-source">
268
+ <pre><span class="ruby-comment"># File lib/ymdp/compiler/template.rb, line 248</span>
269
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">base_filename</span>(<span class="ruby-identifier">filename</span>)
270
+ <span class="ruby-identifier">filename</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp">%r(\.html|\.erb|\.haml)/</span>, <span class="ruby-string">&quot;&quot;</span>)
271
+ <span class="ruby-keyword">end</span></pre>
272
+ </div><!-- base_filename-source -->
273
+
274
+ </div>
275
+
276
+
277
+
278
+
279
+ </div><!-- base_filename-method -->
280
+
281
+
282
+ <div id="method-i-convert_filename" class="method-detail ">
283
+
284
+ <div class="method-heading">
285
+ <span class="method-name">convert_filename</span><span
286
+ class="method-args">(filename)</span>
287
+ <span class="method-click-advice">click to toggle source</span>
288
+ </div>
289
+
290
+
291
+ <div class="method-description">
292
+
293
+ <p>Filename without its extension:</p>
294
+ <ul><li>
295
+ <p>“authorize.html.haml” becomes “authorize”</p>
296
+ </li></ul>
297
+
298
+
299
+
300
+ <div class="method-source-code" id="convert_filename-source">
301
+ <pre><span class="ruby-comment"># File lib/ymdp/compiler/template.rb, line 256</span>
302
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">convert_filename</span>(<span class="ruby-identifier">filename</span>)
303
+ <span class="ruby-identifier">base_filename</span>(<span class="ruby-identifier">filename</span>)
304
+ <span class="ruby-keyword">end</span></pre>
305
+ </div><!-- convert_filename-source -->
306
+
307
+ </div>
308
+
309
+
310
+
311
+
312
+ </div><!-- convert_filename-method -->
313
+
314
+
315
+ <div id="method-i-process_coffee" class="method-detail ">
316
+
317
+ <div class="method-heading">
318
+ <span class="method-name">process_coffee</span><span
319
+ class="method-args">(template, filename=nil)</span>
320
+ <span class="method-click-advice">click to toggle source</span>
321
+ </div>
322
+
323
+
324
+ <div class="method-description">
325
+
326
+
327
+
328
+
329
+
330
+ <div class="method-source-code" id="process_coffee-source">
331
+ <pre><span class="ruby-comment"># File lib/ymdp/compiler/template.rb, line 282</span>
332
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">process_coffee</span>(<span class="ruby-identifier">template</span>, <span class="ruby-identifier">filename</span>=<span class="ruby-keyword">nil</span>)
333
+ <span class="ruby-operator">::</span><span class="ruby-constant">CoffeeScript</span>.<span class="ruby-identifier">compile</span>(<span class="ruby-identifier">process_template</span>(<span class="ruby-identifier">template</span>))
334
+ <span class="ruby-keyword">end</span></pre>
335
+ </div><!-- process_coffee-source -->
336
+
337
+ </div>
338
+
339
+
340
+
341
+
342
+ </div><!-- process_coffee-method -->
343
+
344
+
345
+ <div id="method-i-process_haml" class="method-detail ">
346
+
347
+ <div class="method-heading">
348
+ <span class="method-name">process_haml</span><span
349
+ class="method-args">(template, filename=nil) { || ... }</span>
350
+ <span class="method-click-advice">click to toggle source</span>
351
+ </div>
352
+
353
+
354
+ <div class="method-description">
355
+
356
+ <p>Process this template with Haml.</p>
357
+
358
+
359
+
360
+ <div class="method-source-code" id="process_haml-source">
361
+ <pre><span class="ruby-comment"># File lib/ymdp/compiler/template.rb, line 269</span>
362
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">process_haml</span>(<span class="ruby-identifier">template</span>, <span class="ruby-identifier">filename</span>=<span class="ruby-keyword">nil</span>)
363
+ <span class="ruby-comment"># puts &quot;View process_haml&quot;</span>
364
+ <span class="ruby-identifier">options</span> = {
365
+ <span class="ruby-value">:doctype</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value">:html4</span>
366
+ }
367
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">filename</span>
368
+ <span class="ruby-identifier">options</span>[<span class="ruby-value">:filename</span>] = <span class="ruby-identifier">filename</span>
369
+ <span class="ruby-keyword">end</span>
370
+ <span class="ruby-operator">::</span><span class="ruby-constant">Haml</span><span class="ruby-operator">::</span><span class="ruby-constant">Engine</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">template</span>, <span class="ruby-identifier">options</span>).<span class="ruby-identifier">render</span>(<span class="ruby-keyword">self</span>) <span class="ruby-keyword">do</span>
371
+ <span class="ruby-keyword">yield</span>
372
+ <span class="ruby-keyword">end</span>
373
+ <span class="ruby-keyword">end</span></pre>
374
+ </div><!-- process_haml-source -->
375
+
376
+ </div>
377
+
378
+
379
+
380
+
381
+ </div><!-- process_haml-method -->
382
+
383
+
384
+ <div id="method-i-process_template" class="method-detail ">
385
+
386
+ <div class="method-heading">
387
+ <span class="method-name">process_template</span><span
388
+ class="method-args">(template)</span>
389
+ <span class="method-click-advice">click to toggle source</span>
390
+ </div>
391
+
392
+
393
+ <div class="method-description">
394
+
395
+ <p>Process this template with ERB.</p>
396
+
397
+
398
+
399
+ <div class="method-source-code" id="process_template-source">
400
+ <pre><span class="ruby-comment"># File lib/ymdp/compiler/template.rb, line 262</span>
401
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">process_template</span>(<span class="ruby-identifier">template</span>)
402
+ <span class="ruby-comment"># puts &quot;View process_template&quot;</span>
403
+ <span class="ruby-constant">ERB</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">template</span>, <span class="ruby-value">0</span>, <span class="ruby-string">&quot;%&lt;&gt;&quot;</span>).<span class="ruby-identifier">result</span>(<span class="ruby-identifier">binding</span>)
404
+ <span class="ruby-keyword">end</span></pre>
405
+ </div><!-- process_template-source -->
406
+
407
+ </div>
408
+
409
+
410
+
411
+
412
+ </div><!-- process_template-method -->
413
+
414
+
415
+ <div id="method-i-validator" class="method-detail ">
416
+
417
+ <div class="method-heading">
418
+ <span class="method-name">validator</span><span
419
+ class="method-args">()</span>
420
+ <span class="method-click-advice">click to toggle source</span>
421
+ </div>
422
+
423
+
424
+ <div class="method-description">
425
+
426
+
427
+
428
+
429
+
430
+ <div class="method-source-code" id="validator-source">
431
+ <pre><span class="ruby-comment"># File lib/ymdp/compiler/template.rb, line 300</span>
432
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">validator</span>
433
+ <span class="ruby-ivar">@validator</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">Epic</span><span class="ruby-operator">::</span><span class="ruby-constant">Validator</span><span class="ruby-operator">::</span><span class="ruby-constant">HTML</span>.<span class="ruby-identifier">new</span>
434
+ <span class="ruby-keyword">end</span></pre>
435
+ </div><!-- validator-source -->
436
+
437
+ </div>
438
+
439
+
440
+
441
+
442
+ </div><!-- validator-method -->
443
+
444
+
445
+ <div id="method-i-write_template" class="method-detail ">
446
+
447
+ <div class="method-heading">
448
+ <span class="method-name">write_template</span><span
449
+ class="method-args">(result)</span>
450
+ <span class="method-click-advice">click to toggle source</span>
451
+ </div>
452
+
453
+
454
+ <div class="method-description">
455
+
456
+ <p>Write this template with the application layout applied.</p>
457
+
458
+ <p>Validate the resulting HTML file if that option is turned on.</p>
459
+
460
+
461
+
462
+ <div class="method-source-code" id="write_template-source">
463
+ <pre><span class="ruby-comment"># File lib/ymdp/compiler/template.rb, line 290</span>
464
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">write_template</span>(<span class="ruby-identifier">result</span>)
465
+ <span class="ruby-identifier">result</span> = <span class="ruby-keyword">super</span>(<span class="ruby-identifier">result</span>)
466
+
467
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">configuration</span>.<span class="ruby-identifier">validate</span>[<span class="ruby-string">&quot;html&quot;</span>][<span class="ruby-string">&quot;build&quot;</span>] <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-operator">!</span><span class="ruby-identifier">validator</span>.<span class="ruby-identifier">validate</span>(<span class="ruby-identifier">destination_path</span>)
468
+ <span class="ruby-identifier">raise</span> <span class="ruby-string">&quot;HTML Validation Errors&quot;</span>
469
+ <span class="ruby-keyword">end</span>
470
+
471
+ <span class="ruby-identifier">result</span>
472
+ <span class="ruby-keyword">end</span></pre>
473
+ </div><!-- write_template-source -->
474
+
475
+ </div>
476
+
477
+
478
+
479
+
480
+ </div><!-- write_template-method -->
481
+
482
+
483
+ </section><!-- public-instance-method-details -->
484
+
485
+ </section><!-- 5Buntitled-5D -->
486
+
487
+ </div><!-- documentation -->
488
+
489
+
490
+ <footer id="validator-badges">
491
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
492
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
493
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
494
+ </footer>
495
+