PageTemplate 1.1.2 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. data/CVS/Entries +10 -0
  2. data/CVS/Repository +1 -0
  3. data/CVS/Root +1 -0
  4. data/Changes +13 -0
  5. data/Changes~ +7 -0
  6. data/InstalledFiles +7 -0
  7. data/README.txt +1 -1
  8. data/Rakefile +1 -1
  9. data/Rakefile~ +54 -0
  10. data/TC_PageTemplate.rb +137 -19
  11. data/TC_PageTemplate.rb~ +965 -0
  12. data/doc/classes/BlockCommand.html +1 -1
  13. data/doc/classes/BlockCommand.src/M000004.html +1 -1
  14. data/doc/classes/BlockCommand.src/M000005.html +1 -1
  15. data/doc/classes/BlockCommand.src/M000006.html +1 -1
  16. data/doc/classes/BlockCommand.src/M000007.html +1 -1
  17. data/doc/classes/BlockCommand.src/M000008.html +1 -1
  18. data/doc/classes/Command.html +10 -10
  19. data/doc/classes/Command.src/{M000029.html → M000032.html} +0 -0
  20. data/doc/classes/Command.src/{M000030.html → M000033.html} +0 -0
  21. data/doc/classes/CommentCommand.html +146 -0
  22. data/doc/classes/CommentCommand.src/M000009.html +18 -0
  23. data/doc/classes/IfCommand.html +15 -15
  24. data/doc/classes/IfCommand.src/{M000039.html → M000042.html} +1 -1
  25. data/doc/classes/IfCommand.src/{M000040.html → M000043.html} +1 -1
  26. data/doc/classes/IfCommand.src/{M000041.html → M000044.html} +1 -1
  27. data/doc/classes/IfElseCommand.html +15 -15
  28. data/doc/classes/IfElseCommand.src/M000025.html +5 -6
  29. data/doc/classes/IfElseCommand.src/{M000024.html → M000026.html} +1 -1
  30. data/doc/classes/IfElseCommand.src/M000027.html +20 -0
  31. data/doc/classes/IncludeCommand.html +16 -23
  32. data/doc/classes/IncludeCommand.src/M000019.html +12 -4
  33. data/doc/classes/IncludeCommand.src/{M000018.html → M000020.html} +10 -5
  34. data/doc/classes/IncludeCommand.src/M000021.html +18 -0
  35. data/doc/classes/IncludeCommandError.html +118 -0
  36. data/doc/classes/LoopCommand.src/M000001.html +1 -1
  37. data/doc/classes/LoopCommand.src/M000002.html +11 -2
  38. data/doc/classes/LoopCommand.src/M000003.html +1 -1
  39. data/doc/classes/LoopElseCommand.html +15 -15
  40. data/doc/classes/LoopElseCommand.src/M000022.html +5 -6
  41. data/doc/classes/LoopElseCommand.src/{M000021.html → M000023.html} +1 -1
  42. data/doc/classes/LoopElseCommand.src/M000024.html +20 -0
  43. data/doc/classes/Namespace.html +42 -42
  44. data/doc/classes/Namespace.src/M000034.html +5 -5
  45. data/doc/classes/Namespace.src/M000035.html +4 -22
  46. data/doc/classes/Namespace.src/M000036.html +4 -7
  47. data/doc/classes/Namespace.src/M000037.html +5 -4
  48. data/doc/classes/Namespace.src/M000038.html +22 -4
  49. data/doc/classes/Namespace.src/M000039.html +21 -0
  50. data/doc/classes/Namespace.src/M000040.html +18 -0
  51. data/doc/classes/Namespace.src/{M000031.html → M000041.html} +4 -5
  52. data/doc/classes/PageTemplate.html +72 -44
  53. data/doc/classes/PageTemplate.src/M000010.html +31 -11
  54. data/doc/classes/PageTemplate.src/M000011.html +4 -4
  55. data/doc/classes/PageTemplate.src/M000012.html +15 -4
  56. data/doc/classes/PageTemplate.src/M000013.html +4 -4
  57. data/doc/classes/PageTemplate.src/M000014.html +4 -4
  58. data/doc/classes/PageTemplate.src/M000015.html +4 -4
  59. data/doc/classes/PageTemplate.src/M000016.html +4 -5
  60. data/doc/classes/PageTemplate.src/M000017.html +18 -0
  61. data/doc/classes/PageTemplate.src/M000018.html +19 -0
  62. data/doc/classes/Syntax/CachedParser.html +10 -10
  63. data/doc/classes/Syntax/CachedParser.src/{M000045.html → M000048.html} +1 -1
  64. data/doc/classes/Syntax/CachedParser.src/{M000046.html → M000049.html} +2 -1
  65. data/doc/classes/Syntax/Glossary.html +16 -10
  66. data/doc/classes/Syntax/Glossary.src/{M000047.html → M000050.html} +1 -1
  67. data/doc/classes/Syntax/Glossary.src/{M000048.html → M000051.html} +1 -1
  68. data/doc/classes/Syntax/Parser.html +31 -31
  69. data/doc/classes/Syntax/Parser.src/M000052.html +6 -5
  70. data/doc/classes/Syntax/Parser.src/M000053.html +20 -37
  71. data/doc/classes/Syntax/Parser.src/M000054.html +4 -93
  72. data/doc/classes/Syntax/Parser.src/{M000049.html → M000055.html} +5 -6
  73. data/doc/classes/Syntax/Parser.src/M000056.html +53 -0
  74. data/doc/classes/Syntax/Parser.src/M000057.html +111 -0
  75. data/doc/classes/Syntax.html +1 -1
  76. data/doc/classes/TextCommand.html +15 -15
  77. data/doc/classes/TextCommand.src/{M000042.html → M000045.html} +1 -1
  78. data/doc/classes/TextCommand.src/{M000043.html → M000046.html} +1 -1
  79. data/doc/classes/TextCommand.src/{M000044.html → M000047.html} +1 -1
  80. data/doc/classes/UnlessCommand.html +151 -0
  81. data/doc/classes/UnlessCommand.src/M000028.html +20 -0
  82. data/doc/classes/ValueCommand.html +15 -15
  83. data/doc/classes/ValueCommand.src/{M000026.html → M000029.html} +1 -1
  84. data/doc/classes/ValueCommand.src/{M000027.html → M000030.html} +1 -1
  85. data/doc/classes/ValueCommand.src/{M000028.html → M000031.html} +1 -1
  86. data/doc/created.rid +1 -1
  87. data/doc/files/README_txt.html +2 -2
  88. data/doc/files/lib/PageTemplate_rb.html +1 -1
  89. data/doc/fr_class_index.html +3 -0
  90. data/doc/fr_method_index.html +52 -49
  91. data/lib/CVS/Entries +2 -0
  92. data/lib/CVS/Repository +1 -0
  93. data/lib/CVS/Root +1 -0
  94. data/lib/PageTemplate.rb +103 -26
  95. data/lib/PageTemplate.rb~ +1004 -0
  96. data/pkg/PageTemplate-1.2.0.gem +0 -0
  97. data/tdata/CVS/Entries +28 -0
  98. data/tdata/CVS/Repository +1 -0
  99. data/tdata/CVS/Root +1 -0
  100. data/tdata/cm.txt +3 -0
  101. data/tdata/include.4.nf.out.txt +2 -0
  102. data/tdata/metadata.1.txt +5 -0
  103. data/tdata/metadata.2.txt +5 -0
  104. data/tdata/metadata.3.txt +5 -0
  105. data/tdata/metadata.4.txt +5 -0
  106. data/tdata/p/CVS/Entries +5 -0
  107. data/tdata/p/CVS/Repository +1 -0
  108. data/tdata/p/CVS/Root +1 -0
  109. data/tdata/p/CVS/b2.txt,t +0 -0
  110. data/tdata/p/b2.txt +4 -0
  111. data/tdata/p/b2.txt~ +4 -0
  112. metadata +70 -32
  113. data/doc/classes/IfElseCommand.src/M000023.html +0 -19
  114. data/doc/classes/IncludeCommand.src/M000017.html +0 -21
  115. data/doc/classes/LoopElseCommand.src/M000020.html +0 -19
  116. data/doc/classes/Namespace.src/M000032.html +0 -18
  117. data/doc/classes/Namespace.src/M000033.html +0 -18
  118. data/doc/classes/PageTemplate.src/M000009.html +0 -46
  119. data/doc/classes/Syntax/Parser.src/M000050.html +0 -35
  120. data/doc/classes/Syntax/Parser.src/M000051.html +0 -18
  121. data/lib/MANIFEST +0 -2
  122. data/pkg/PageTemplate-1.1.2.gem +0 -0
@@ -5,14 +5,15 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>push (Namespace)</title>
8
+ <title>set (Namespace)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/PageTemplate.rb, line 87</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">push</span>(<span class="ruby-identifier">namespace</span>)
15
- <span class="ruby-ivar">@nSpaces</span>.<span class="ruby-identifier">push</span>(<span class="ruby-identifier">namespace</span>)
13
+ <pre><span class="ruby-comment cmt"># File lib/PageTemplate.rb, line 37</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span>)
15
+ <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;Namespace setting global #{key} to #{value}&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">$DEBUG</span>
16
+ <span class="ruby-ivar">@global</span>[<span class="ruby-identifier">key</span>] = <span class="ruby-identifier">value</span>
16
17
  <span class="ruby-keyword kw">end</span></pre>
17
18
  </body>
18
19
  </html>
@@ -5,14 +5,32 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>pop (Namespace)</title>
8
+ <title>get (Namespace)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/PageTemplate.rb, line 94</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pop</span>
15
- <span class="ruby-ivar">@nSpaces</span>.<span class="ruby-identifier">pop</span>
13
+ <pre><span class="ruby-comment cmt"># File lib/PageTemplate.rb, line 53</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get</span>(<span class="ruby-identifier">key</span>)
15
+ <span class="ruby-identifier">value</span> = <span class="ruby-keyword kw">nil</span>
16
+
17
+ <span class="ruby-ivar">@nSpaces</span>.<span class="ruby-identifier">reverse</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">ns</span><span class="ruby-operator">|</span>
18
+
19
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">ns</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-node">&quot;:#{key}&quot;</span>)
20
+ <span class="ruby-identifier">value</span> = <span class="ruby-identifier">ns</span>.<span class="ruby-identifier">send</span>(<span class="ruby-node">&quot;:#{key}&quot;</span>)
21
+ <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">ns</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-node">&quot;#{key}&quot;</span>)
22
+ <span class="ruby-identifier">value</span> = <span class="ruby-identifier">ns</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">key</span>)
23
+ <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">ns</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-value str">&quot;[]&quot;</span>)
24
+ <span class="ruby-identifier">value</span> = <span class="ruby-identifier">ns</span>[<span class="ruby-identifier">key</span>]
25
+ <span class="ruby-keyword kw">end</span>
26
+
27
+ <span class="ruby-keyword kw">break</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">value</span>
28
+ <span class="ruby-keyword kw">end</span>
29
+
30
+ <span class="ruby-identifier">value</span> = <span class="ruby-ivar">@global</span>[<span class="ruby-identifier">key</span>] <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">value</span>
31
+ <span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;Namespace #{key}: #{value}&quot;</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">$DEBUG</span>
32
+
33
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">value</span>
16
34
  <span class="ruby-keyword kw">end</span></pre>
17
35
  </body>
18
36
  </html>
@@ -0,0 +1,21 @@
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>
7
+ <head>
8
+ <title>true? (Namespace)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/PageTemplate.rb, line 78</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">true?</span>(<span class="ruby-identifier">flag</span>)
15
+ <span class="ruby-identifier">value</span> = <span class="ruby-identifier">get</span>(<span class="ruby-identifier">flag</span>)
16
+ <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">value</span>
17
+
18
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">value</span>
19
+ <span class="ruby-keyword kw">end</span></pre>
20
+ </body>
21
+ </html>
@@ -0,0 +1,18 @@
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>
7
+ <head>
8
+ <title>push (Namespace)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/PageTemplate.rb, line 87</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">push</span>(<span class="ruby-identifier">namespace</span>)
15
+ <span class="ruby-ivar">@nSpaces</span>.<span class="ruby-identifier">push</span>(<span class="ruby-identifier">namespace</span>)
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -5,15 +5,14 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>new (Namespace)</title>
8
+ <title>pop (Namespace)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/PageTemplate.rb, line 20</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>()
15
- <span class="ruby-ivar">@global</span> = {}
16
- <span class="ruby-ivar">@nSpaces</span> = []
13
+ <pre><span class="ruby-comment cmt"># File lib/PageTemplate.rb, line 94</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pop</span>
15
+ <span class="ruby-ivar">@nSpaces</span>.<span class="ruby-identifier">pop</span>
17
16
  <span class="ruby-keyword kw">end</span></pre>
18
17
  </body>
19
18
  </html>
@@ -100,14 +100,15 @@ this package.
100
100
  <h3 class="section-bar">Methods</h3>
101
101
 
102
102
  <div class="name-list">
103
- <a href="#M000014">[]</a>&nbsp;&nbsp;
104
- <a href="#M000013">[]=</a>&nbsp;&nbsp;
105
- <a href="#M000016">clearFile</a>&nbsp;&nbsp;
106
- <a href="#M000012">getParameter</a>&nbsp;&nbsp;
107
- <a href="#M000010">load</a>&nbsp;&nbsp;
108
- <a href="#M000009">new</a>&nbsp;&nbsp;
109
- <a href="#M000015">output</a>&nbsp;&nbsp;
110
- <a href="#M000011">setParameter</a>&nbsp;&nbsp;
103
+ <a href="#M000016">[]</a>&nbsp;&nbsp;
104
+ <a href="#M000015">[]=</a>&nbsp;&nbsp;
105
+ <a href="#M000011">add_path</a>&nbsp;&nbsp;
106
+ <a href="#M000018">clearFile</a>&nbsp;&nbsp;
107
+ <a href="#M000014">getParameter</a>&nbsp;&nbsp;
108
+ <a href="#M000012">load</a>&nbsp;&nbsp;
109
+ <a href="#M000010">new</a>&nbsp;&nbsp;
110
+ <a href="#M000017">output</a>&nbsp;&nbsp;
111
+ <a href="#M000013">setParameter</a>&nbsp;&nbsp;
111
112
  </div>
112
113
  </div>
113
114
 
@@ -137,6 +138,11 @@ this package.
137
138
  <td class="context-item-value">&nbsp;[R]&nbsp;</td>
138
139
  <td class="context-item-desc"></td>
139
140
  </tr>
141
+ <tr class="top-aligned-row context-row">
142
+ <td class="context-item-name">path</td>
143
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
144
+ <td class="context-item-desc"></td>
145
+ </tr>
140
146
  <tr class="top-aligned-row context-row">
141
147
  <td class="context-item-name">syntax</td>
142
148
  <td class="context-item-value">&nbsp;[R]&nbsp;</td>
@@ -152,12 +158,12 @@ this package.
152
158
  <div id="methods">
153
159
  <h3 class="section-bar">Public Class methods</h3>
154
160
 
155
- <div id="method-M000009" class="method-detail">
156
- <a name="M000009"></a>
161
+ <div id="method-M000010" class="method-detail">
162
+ <a name="M000010"></a>
157
163
 
158
164
  <div class="method-heading">
159
- <a href="PageTemplate.src/M000009.html" target="Code" class="method-signature"
160
- onclick="popupCode('PageTemplate.src/M000009.html');return false;">
165
+ <a href="PageTemplate.src/M000010.html" target="Code" class="method-signature"
166
+ onclick="popupCode('PageTemplate.src/M000010.html');return false;">
161
167
  <span class="method-name">new</span><span class="method-args">(args = {})</span>
162
168
  </a>
163
169
  </div>
@@ -169,9 +175,14 @@ Creates a new <a href="PageTemplate.html">PageTemplate</a> object, using
169
175
  </p>
170
176
  <h4>Possible Keys For Args</h4>
171
177
  <dl>
172
- <dt>:include_path</dt><dd>The directory that <a href="PageTemplate.html">PageTemplate</a> will look
173
- for template files in.
178
+ <dt>:include_path</dt><dd>Additional directories that <a href="PageTemplate.html">PageTemplate</a>
179
+ will look for template files in.
174
180
 
181
+ <ul>
182
+ <li>May be a string or Array
183
+
184
+ </li>
185
+ </ul>
175
186
  </dd>
176
187
  <dt>:filename</dt><dd>The name of a text file to use for a template.
177
188
 
@@ -199,12 +210,12 @@ href="Namespace.html">Namespace</a> during output, though.
199
210
 
200
211
  <h3 class="section-bar">Public Instance methods</h3>
201
212
 
202
- <div id="method-M000014" class="method-detail">
203
- <a name="M000014"></a>
213
+ <div id="method-M000016" class="method-detail">
214
+ <a name="M000016"></a>
204
215
 
205
216
  <div class="method-heading">
206
- <a href="PageTemplate.src/M000014.html" target="Code" class="method-signature"
207
- onclick="popupCode('PageTemplate.src/M000014.html');return false;">
217
+ <a href="PageTemplate.src/M000016.html" target="Code" class="method-signature"
218
+ onclick="popupCode('PageTemplate.src/M000016.html');return false;">
208
219
  <span class="method-name">[]</span><span class="method-args">(key)</span>
209
220
  </a>
210
221
  </div>
@@ -212,17 +223,17 @@ href="Namespace.html">Namespace</a> during output, though.
212
223
  <div class="method-description">
213
224
  <p>
214
225
  An alias for <a
215
- href="PageTemplate.html#M000012">PageTemplate.getParameter</a>(key)
226
+ href="PageTemplate.html#M000014">PageTemplate.getParameter</a>(key)
216
227
  </p>
217
228
  </div>
218
229
  </div>
219
230
 
220
- <div id="method-M000013" class="method-detail">
221
- <a name="M000013"></a>
231
+ <div id="method-M000015" class="method-detail">
232
+ <a name="M000015"></a>
222
233
 
223
234
  <div class="method-heading">
224
- <a href="PageTemplate.src/M000013.html" target="Code" class="method-signature"
225
- onclick="popupCode('PageTemplate.src/M000013.html');return false;">
235
+ <a href="PageTemplate.src/M000015.html" target="Code" class="method-signature"
236
+ onclick="popupCode('PageTemplate.src/M000015.html');return false;">
226
237
  <span class="method-name">[]=</span><span class="method-args">(key, value)</span>
227
238
  </a>
228
239
  </div>
@@ -230,17 +241,34 @@ href="PageTemplate.html#M000012">PageTemplate.getParameter</a>(key)
230
241
  <div class="method-description">
231
242
  <p>
232
243
  An alias for <a
233
- href="PageTemplate.html#M000011">PageTemplate.setParameter</a>(key, value)
244
+ href="PageTemplate.html#M000013">PageTemplate.setParameter</a>(key, value)
234
245
  </p>
235
246
  </div>
236
247
  </div>
237
248
 
238
- <div id="method-M000016" class="method-detail">
239
- <a name="M000016"></a>
249
+ <div id="method-M000011" class="method-detail">
250
+ <a name="M000011"></a>
240
251
 
241
252
  <div class="method-heading">
242
- <a href="PageTemplate.src/M000016.html" target="Code" class="method-signature"
243
- onclick="popupCode('PageTemplate.src/M000016.html');return false;">
253
+ <a href="PageTemplate.src/M000011.html" target="Code" class="method-signature"
254
+ onclick="popupCode('PageTemplate.src/M000011.html');return false;">
255
+ <span class="method-name">add_path</span><span class="method-args">(path)</span>
256
+ </a>
257
+ </div>
258
+
259
+ <div class="method-description">
260
+ <p>
261
+ Add a path to the search path for loading includes.
262
+ </p>
263
+ </div>
264
+ </div>
265
+
266
+ <div id="method-M000018" class="method-detail">
267
+ <a name="M000018"></a>
268
+
269
+ <div class="method-heading">
270
+ <a href="PageTemplate.src/M000018.html" target="Code" class="method-signature"
271
+ onclick="popupCode('PageTemplate.src/M000018.html');return false;">
244
272
  <span class="method-name">clearFile</span><span class="method-args">()</span>
245
273
  </a>
246
274
  </div>
@@ -254,12 +282,12 @@ href="Namespace.html">Namespace</a> intact.
254
282
  </div>
255
283
  </div>
256
284
 
257
- <div id="method-M000012" class="method-detail">
258
- <a name="M000012"></a>
285
+ <div id="method-M000014" class="method-detail">
286
+ <a name="M000014"></a>
259
287
 
260
288
  <div class="method-heading">
261
- <a href="PageTemplate.src/M000012.html" target="Code" class="method-signature"
262
- onclick="popupCode('PageTemplate.src/M000012.html');return false;">
289
+ <a href="PageTemplate.src/M000014.html" target="Code" class="method-signature"
290
+ onclick="popupCode('PageTemplate.src/M000014.html');return false;">
263
291
  <span class="method-name">getParameter</span><span class="method-args">(name)</span>
264
292
  </a>
265
293
  </div>
@@ -272,12 +300,12 @@ if the value is not set.
272
300
  </div>
273
301
  </div>
274
302
 
275
- <div id="method-M000010" class="method-detail">
276
- <a name="M000010"></a>
303
+ <div id="method-M000012" class="method-detail">
304
+ <a name="M000012"></a>
277
305
 
278
306
  <div class="method-heading">
279
- <a href="PageTemplate.src/M000010.html" target="Code" class="method-signature"
280
- onclick="popupCode('PageTemplate.src/M000010.html');return false;">
307
+ <a href="PageTemplate.src/M000012.html" target="Code" class="method-signature"
308
+ onclick="popupCode('PageTemplate.src/M000012.html');return false;">
281
309
  <span class="method-name">load</span><span class="method-args">(file)</span>
282
310
  </a>
283
311
  </div>
@@ -290,12 +318,12 @@ template generation.
290
318
  </div>
291
319
  </div>
292
320
 
293
- <div id="method-M000015" class="method-detail">
294
- <a name="M000015"></a>
321
+ <div id="method-M000017" class="method-detail">
322
+ <a name="M000017"></a>
295
323
 
296
324
  <div class="method-heading">
297
- <a href="PageTemplate.src/M000015.html" target="Code" class="method-signature"
298
- onclick="popupCode('PageTemplate.src/M000015.html');return false;">
325
+ <a href="PageTemplate.src/M000017.html" target="Code" class="method-signature"
326
+ onclick="popupCode('PageTemplate.src/M000017.html');return false;">
299
327
  <span class="method-name">output</span><span class="method-args">()</span>
300
328
  </a>
301
329
  </div>
@@ -315,12 +343,12 @@ template page.
315
343
  </div>
316
344
  </div>
317
345
 
318
- <div id="method-M000011" class="method-detail">
319
- <a name="M000011"></a>
346
+ <div id="method-M000013" class="method-detail">
347
+ <a name="M000013"></a>
320
348
 
321
349
  <div class="method-heading">
322
- <a href="PageTemplate.src/M000011.html" target="Code" class="method-signature"
323
- onclick="popupCode('PageTemplate.src/M000011.html');return false;">
350
+ <a href="PageTemplate.src/M000013.html" target="Code" class="method-signature"
351
+ onclick="popupCode('PageTemplate.src/M000013.html');return false;">
324
352
  <span class="method-name">setParameter</span><span class="method-args">(name, value)</span>
325
353
  </a>
326
354
  </div>
@@ -5,25 +5,45 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>load (PageTemplate)</title>
8
+ <title>new (PageTemplate)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/PageTemplate.rb, line 824</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">load</span>(<span class="ruby-identifier">file</span>)
15
- <span class="ruby-identifier">clearFile</span>()
16
- <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-identifier">file</span>) <span class="ruby-keyword kw">then</span>
17
- <span class="ruby-ivar">@file</span> = <span class="ruby-identifier">file</span>
13
+ <pre><span class="ruby-comment cmt"># File lib/PageTemplate.rb, line 837</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">args</span> = {})
15
+
16
+ <span class="ruby-ivar">@source</span> = []
17
+ <span class="ruby-ivar">@params</span> = <span class="ruby-constant">Namespace</span>.<span class="ruby-identifier">new</span>()
18
+
19
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">args</span>[<span class="ruby-value str">'syntax'</span>]
20
+ <span class="ruby-ivar">@syntax</span> = <span class="ruby-identifier">args</span>[<span class="ruby-value str">'syntax'</span>]
18
21
  <span class="ruby-keyword kw">else</span>
19
- <span class="ruby-identifier">filepath</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-ivar">@path</span>, <span class="ruby-identifier">file</span>)
20
- <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-identifier">filepath</span>) <span class="ruby-keyword kw">then</span>
21
- <span class="ruby-ivar">@file</span> = <span class="ruby-identifier">filepath</span>
22
+ <span class="ruby-ivar">@syntax</span> = <span class="ruby-constant">Syntax</span><span class="ruby-operator">::</span><span class="ruby-constant">DEFAULT</span>
23
+ <span class="ruby-keyword kw">end</span>
24
+
25
+ <span class="ruby-ivar">@path</span> = [ <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">getwd</span>() ]
26
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">pathInfo</span> = <span class="ruby-identifier">args</span>[<span class="ruby-value str">'include_path'</span>]
27
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">pathInfo</span>.<span class="ruby-identifier">class</span> <span class="ruby-operator">==</span> <span class="ruby-constant">Array</span>
28
+ <span class="ruby-ivar">@path</span> = <span class="ruby-ivar">@path</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">pathInfo</span>
22
29
  <span class="ruby-keyword kw">else</span>
23
- <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-node">&quot;Cannot find #{file} in include path&quot;</span>
30
+ <span class="ruby-ivar">@path</span>.<span class="ruby-identifier">push</span>(<span class="ruby-identifier">pathInfo</span>)
24
31
  <span class="ruby-keyword kw">end</span>
25
32
  <span class="ruby-keyword kw">end</span>
26
- <span class="ruby-ivar">@parser</span>.<span class="ruby-identifier">build</span>(<span class="ruby-ivar">@file</span>)
33
+
34
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">args</span>[<span class="ruby-value str">'use_cache'</span>]
35
+ <span class="ruby-ivar">@parser</span> = <span class="ruby-constant">Syntax</span><span class="ruby-operator">::</span><span class="ruby-constant">CachedParser</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@syntax</span>, <span class="ruby-ivar">@path</span>)
36
+ <span class="ruby-keyword kw">else</span>
37
+ <span class="ruby-ivar">@parser</span> = <span class="ruby-constant">Syntax</span><span class="ruby-operator">::</span><span class="ruby-constant">Parser</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@syntax</span>, <span class="ruby-ivar">@path</span>)
38
+ <span class="ruby-keyword kw">end</span>
39
+
40
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">args</span>[<span class="ruby-value str">'filename'</span>]
41
+ <span class="ruby-ivar">@file</span> = <span class="ruby-identifier">args</span>[<span class="ruby-value str">'filename'</span>]
42
+ <span class="ruby-identifier">load</span>(<span class="ruby-ivar">@file</span>)
43
+ <span class="ruby-keyword kw">else</span>
44
+ <span class="ruby-ivar">@file</span> = <span class="ruby-keyword kw">nil</span>
45
+ <span class="ruby-keyword kw">end</span>
46
+
27
47
  <span class="ruby-keyword kw">end</span></pre>
28
48
  </body>
29
49
  </html>
@@ -5,14 +5,14 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>setParameter (PageTemplate)</title>
8
+ <title>add_path (PageTemplate)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/PageTemplate.rb, line 843</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setParameter</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">value</span>)
15
- <span class="ruby-ivar">@params</span>.<span class="ruby-identifier">set</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">value</span>)
13
+ <pre><span class="ruby-comment cmt"># File lib/PageTemplate.rb, line 873</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_path</span>(<span class="ruby-identifier">path</span>)
15
+ <span class="ruby-ivar">@path</span>.<span class="ruby-identifier">push</span>(<span class="ruby-identifier">path</span>)
16
16
  <span class="ruby-keyword kw">end</span></pre>
17
17
  </body>
18
18
  </html>
@@ -5,14 +5,25 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>getParameter (PageTemplate)</title>
8
+ <title>load (PageTemplate)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/PageTemplate.rb, line 849</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">getParameter</span>(<span class="ruby-identifier">name</span>)
15
- <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@params</span>.<span class="ruby-identifier">get</span>(<span class="ruby-identifier">name</span>)
13
+ <pre><span class="ruby-comment cmt"># File lib/PageTemplate.rb, line 879</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">load</span>(<span class="ruby-identifier">file</span>)
15
+ <span class="ruby-identifier">clearFile</span>()
16
+ <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-identifier">file</span>) <span class="ruby-keyword kw">then</span>
17
+ <span class="ruby-ivar">@file</span> = <span class="ruby-identifier">file</span>
18
+ <span class="ruby-keyword kw">else</span>
19
+ <span class="ruby-identifier">filepath</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-ivar">@path</span>, <span class="ruby-identifier">file</span>)
20
+ <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-identifier">filepath</span>) <span class="ruby-keyword kw">then</span>
21
+ <span class="ruby-ivar">@file</span> = <span class="ruby-identifier">filepath</span>
22
+ <span class="ruby-keyword kw">else</span>
23
+ <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-node">&quot;Cannot find #{file} in include path&quot;</span>
24
+ <span class="ruby-keyword kw">end</span>
25
+ <span class="ruby-keyword kw">end</span>
26
+ <span class="ruby-ivar">@parser</span>.<span class="ruby-identifier">build</span>(<span class="ruby-ivar">@file</span>)
16
27
  <span class="ruby-keyword kw">end</span></pre>
17
28
  </body>
18
29
  </html>
@@ -5,14 +5,14 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>[]= (PageTemplate)</title>
8
+ <title>setParameter (PageTemplate)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/PageTemplate.rb, line 854</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]=</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span>)
15
- <span class="ruby-identifier">setParameter</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span>)
13
+ <pre><span class="ruby-comment cmt"># File lib/PageTemplate.rb, line 898</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setParameter</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">value</span>)
15
+ <span class="ruby-ivar">@params</span>.<span class="ruby-identifier">set</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">value</span>)
16
16
  <span class="ruby-keyword kw">end</span></pre>
17
17
  </body>
18
18
  </html>
@@ -5,14 +5,14 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>[] (PageTemplate)</title>
8
+ <title>getParameter (PageTemplate)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/PageTemplate.rb, line 859</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">key</span>)
15
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">getParameter</span>(<span class="ruby-identifier">key</span>)
13
+ <pre><span class="ruby-comment cmt"># File lib/PageTemplate.rb, line 904</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">getParameter</span>(<span class="ruby-identifier">name</span>)
15
+ <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@params</span>.<span class="ruby-identifier">get</span>(<span class="ruby-identifier">name</span>)
16
16
  <span class="ruby-keyword kw">end</span></pre>
17
17
  </body>
18
18
  </html>
@@ -5,14 +5,14 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>output (PageTemplate)</title>
8
+ <title>[]= (PageTemplate)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/PageTemplate.rb, line 870</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">output</span>
15
- <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@parser</span>.<span class="ruby-identifier">commands</span>.<span class="ruby-identifier">output</span>(<span class="ruby-ivar">@params</span>)
13
+ <pre><span class="ruby-comment cmt"># File lib/PageTemplate.rb, line 909</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]=</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span>)
15
+ <span class="ruby-identifier">setParameter</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span>)
16
16
  <span class="ruby-keyword kw">end</span></pre>
17
17
  </body>
18
18
  </html>
@@ -5,15 +5,14 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>clearFile (PageTemplate)</title>
8
+ <title>[] (PageTemplate)</title>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
10
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
11
  </head>
12
12
  <body class="standalone-code">
13
- <pre><span class="ruby-comment cmt"># File lib/PageTemplate.rb, line 876</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clearFile</span>
15
- <span class="ruby-ivar">@file</span> = <span class="ruby-keyword kw">nil</span>
16
- <span class="ruby-ivar">@parser</span>.<span class="ruby-identifier">reset</span>()
13
+ <pre><span class="ruby-comment cmt"># File lib/PageTemplate.rb, line 914</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">key</span>)
15
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">getParameter</span>(<span class="ruby-identifier">key</span>)
17
16
  <span class="ruby-keyword kw">end</span></pre>
18
17
  </body>
19
18
  </html>
@@ -0,0 +1,18 @@
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>
7
+ <head>
8
+ <title>output (PageTemplate)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/PageTemplate.rb, line 925</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">output</span>
15
+ <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@parser</span>.<span class="ruby-identifier">commands</span>.<span class="ruby-identifier">output</span>(<span class="ruby-ivar">@params</span>)
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,19 @@
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>
7
+ <head>
8
+ <title>clearFile (PageTemplate)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/PageTemplate.rb, line 931</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clearFile</span>
15
+ <span class="ruby-ivar">@file</span> = <span class="ruby-keyword kw">nil</span>
16
+ <span class="ruby-ivar">@parser</span>.<span class="ruby-identifier">reset</span>()
17
+ <span class="ruby-keyword kw">end</span></pre>
18
+ </body>
19
+ </html>