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
@@ -189,7 +189,7 @@ href="BlockCommand.html">BlockCommand</a>
189
189
 
190
190
  <div class="method-description">
191
191
  <p>
192
- Applies <a href="Command.html#M000029">Command#output</a>(namespace) to
192
+ Applies <a href="Command.html#M000032">Command#output</a>(namespace) to
193
193
  each <a href="Command.html">Command</a> contained in this object. The
194
194
  output is returned as a single string. If no output is generated, returns
195
195
  nil.
@@ -10,7 +10,7 @@
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 124</span>
13
+ <pre><span class="ruby-comment cmt"># File lib/PageTemplate.rb, line 134</span>
14
14
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>()
15
15
  <span class="ruby-ivar">@commandBlock</span> = []
16
16
  <span class="ruby-keyword kw">end</span></pre>
@@ -10,7 +10,7 @@
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 129</span>
13
+ <pre><span class="ruby-comment cmt"># File lib/PageTemplate.rb, line 139</span>
14
14
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
15
15
  <span class="ruby-identifier">str</span> = <span class="ruby-value str">&quot;BlockCommand: &quot;</span>
16
16
  <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@commandBlock</span>
@@ -10,7 +10,7 @@
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 141</span>
13
+ <pre><span class="ruby-comment cmt"># File lib/PageTemplate.rb, line 151</span>
14
14
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">length</span>
15
15
  <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@commandBlock</span>.<span class="ruby-identifier">length</span>
16
16
  <span class="ruby-keyword kw">end</span></pre>
@@ -10,7 +10,7 @@
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 149</span>
13
+ <pre><span class="ruby-comment cmt"># File lib/PageTemplate.rb, line 159</span>
14
14
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add</span>(<span class="ruby-identifier">command</span>)
15
15
  <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">command</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Command</span>)
16
16
  <span class="ruby-ivar">@commandBlock</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">command</span>
@@ -10,7 +10,7 @@
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 161</span>
13
+ <pre><span class="ruby-comment cmt"># File lib/PageTemplate.rb, line 171</span>
14
14
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">output</span>(<span class="ruby-identifier">namespace</span> = <span class="ruby-keyword kw">nil</span>)
15
15
  <span class="ruby-identifier">text</span> = <span class="ruby-value str">&quot;&quot;</span>
16
16
  <span class="ruby-ivar">@commandBlock</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">x</span><span class="ruby-operator">|</span>
@@ -95,8 +95,8 @@ interface.
95
95
  <h3 class="section-bar">Methods</h3>
96
96
 
97
97
  <div class="name-list">
98
- <a href="#M000029">output</a>&nbsp;&nbsp;
99
- <a href="#M000030">to_s</a>&nbsp;&nbsp;
98
+ <a href="#M000032">output</a>&nbsp;&nbsp;
99
+ <a href="#M000033">to_s</a>&nbsp;&nbsp;
100
100
  </div>
101
101
  </div>
102
102
 
@@ -118,12 +118,12 @@ interface.
118
118
  <div id="methods">
119
119
  <h3 class="section-bar">Public Instance methods</h3>
120
120
 
121
- <div id="method-M000029" class="method-detail">
122
- <a name="M000029"></a>
121
+ <div id="method-M000032" class="method-detail">
122
+ <a name="M000032"></a>
123
123
 
124
124
  <div class="method-heading">
125
- <a href="Command.src/M000029.html" target="Code" class="method-signature"
126
- onclick="popupCode('Command.src/M000029.html');return false;">
125
+ <a href="Command.src/M000032.html" target="Code" class="method-signature"
126
+ onclick="popupCode('Command.src/M000032.html');return false;">
127
127
  <span class="method-name">output</span><span class="method-args">(namespace = nil)</span>
128
128
  </a>
129
129
  </div>
@@ -138,12 +138,12 @@ particular subclass.
138
138
  </div>
139
139
  </div>
140
140
 
141
- <div id="method-M000030" class="method-detail">
142
- <a name="M000030"></a>
141
+ <div id="method-M000033" class="method-detail">
142
+ <a name="M000033"></a>
143
143
 
144
144
  <div class="method-heading">
145
- <a href="Command.src/M000030.html" target="Code" class="method-signature"
146
- onclick="popupCode('Command.src/M000030.html');return false;">
145
+ <a href="Command.src/M000033.html" target="Code" class="method-signature"
146
+ onclick="popupCode('Command.src/M000033.html');return false;">
147
147
  <span class="method-name">to_s</span><span class="method-args">()</span>
148
148
  </a>
149
149
  </div>
@@ -0,0 +1,146 @@
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: CommentCommand</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">CommentCommand</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../files/lib/PageTemplate_rb.html">
59
+ lib/PageTemplate.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="Command.html">
69
+ Command
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
+ <div id="description">
84
+ <p>
85
+ <a href="CommentCommand.html">CommentCommand</a> provides a mechanism for
86
+ ignoring the contents of a block.
87
+ </p>
88
+
89
+ </div>
90
+
91
+
92
+ </div>
93
+
94
+ <div id="method-list">
95
+ <h3 class="section-bar">Methods</h3>
96
+
97
+ <div class="name-list">
98
+ <a href="#M000009">output</a>&nbsp;&nbsp;
99
+ </div>
100
+ </div>
101
+
102
+ </div>
103
+
104
+
105
+ <!-- if includes -->
106
+
107
+ <div id="section">
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+ <!-- if method_list -->
117
+ <div id="methods">
118
+ <h3 class="section-bar">Public Instance methods</h3>
119
+
120
+ <div id="method-M000009" class="method-detail">
121
+ <a name="M000009"></a>
122
+
123
+ <div class="method-heading">
124
+ <a href="CommentCommand.src/M000009.html" target="Code" class="method-signature"
125
+ onclick="popupCode('CommentCommand.src/M000009.html');return false;">
126
+ <span class="method-name">output</span><span class="method-args">(namespace = nil)</span>
127
+ </a>
128
+ </div>
129
+
130
+ <div class="method-description">
131
+ </div>
132
+ </div>
133
+
134
+
135
+ </div>
136
+
137
+
138
+ </div>
139
+
140
+
141
+ <div id="validator-badges">
142
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
143
+ </div>
144
+
145
+ </body>
146
+ </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 (CommentCommand)</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 124</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">output</span>(<span class="ruby-identifier">namespace</span> = <span class="ruby-keyword kw">nil</span>)
15
+ <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -96,9 +96,9 @@ is true.
96
96
  <h3 class="section-bar">Methods</h3>
97
97
 
98
98
  <div class="name-list">
99
- <a href="#M000039">new</a>&nbsp;&nbsp;
100
- <a href="#M000040">output</a>&nbsp;&nbsp;
101
- <a href="#M000041">to_s</a>&nbsp;&nbsp;
99
+ <a href="#M000042">new</a>&nbsp;&nbsp;
100
+ <a href="#M000043">output</a>&nbsp;&nbsp;
101
+ <a href="#M000044">to_s</a>&nbsp;&nbsp;
102
102
  </div>
103
103
  </div>
104
104
 
@@ -120,12 +120,12 @@ is true.
120
120
  <div id="methods">
121
121
  <h3 class="section-bar">Public Class methods</h3>
122
122
 
123
- <div id="method-M000039" class="method-detail">
124
- <a name="M000039"></a>
123
+ <div id="method-M000042" class="method-detail">
124
+ <a name="M000042"></a>
125
125
 
126
126
  <div class="method-heading">
127
- <a href="IfCommand.src/M000039.html" target="Code" class="method-signature"
128
- onclick="popupCode('IfCommand.src/M000039.html');return false;">
127
+ <a href="IfCommand.src/M000042.html" target="Code" class="method-signature"
128
+ onclick="popupCode('IfCommand.src/M000042.html');return false;">
129
129
  <span class="method-name">new</span><span class="method-args">(flag, commandBlock)</span>
130
130
  </a>
131
131
  </div>
@@ -142,12 +142,12 @@ to execute when the flag is true.
142
142
 
143
143
  <h3 class="section-bar">Public Instance methods</h3>
144
144
 
145
- <div id="method-M000040" class="method-detail">
146
- <a name="M000040"></a>
145
+ <div id="method-M000043" class="method-detail">
146
+ <a name="M000043"></a>
147
147
 
148
148
  <div class="method-heading">
149
- <a href="IfCommand.src/M000040.html" target="Code" class="method-signature"
150
- onclick="popupCode('IfCommand.src/M000040.html');return false;">
149
+ <a href="IfCommand.src/M000043.html" target="Code" class="method-signature"
150
+ onclick="popupCode('IfCommand.src/M000043.html');return false;">
151
151
  <span class="method-name">output</span><span class="method-args">(namespace)</span>
152
152
  </a>
153
153
  </div>
@@ -161,12 +161,12 @@ by the CommandBlock. Otherwise, returns nil.
161
161
  </div>
162
162
  </div>
163
163
 
164
- <div id="method-M000041" class="method-detail">
165
- <a name="M000041"></a>
164
+ <div id="method-M000044" class="method-detail">
165
+ <a name="M000044"></a>
166
166
 
167
167
  <div class="method-heading">
168
- <a href="IfCommand.src/M000041.html" target="Code" class="method-signature"
169
- onclick="popupCode('IfCommand.src/M000041.html');return false;">
168
+ <a href="IfCommand.src/M000044.html" target="Code" class="method-signature"
169
+ onclick="popupCode('IfCommand.src/M000044.html');return false;">
170
170
  <span class="method-name">to_s</span><span class="method-args">()</span>
171
171
  </a>
172
172
  </div>
@@ -10,7 +10,7 @@
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 219</span>
13
+ <pre><span class="ruby-comment cmt"># File lib/PageTemplate.rb, line 229</span>
14
14
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">flag</span>, <span class="ruby-identifier">commandBlock</span>)
15
15
  <span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">flag</span>)
16
16
  <span class="ruby-ivar">@commands</span> = <span class="ruby-identifier">commandBlock</span>
@@ -10,7 +10,7 @@
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 226</span>
13
+ <pre><span class="ruby-comment cmt"># File lib/PageTemplate.rb, line 236</span>
14
14
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">output</span>(<span class="ruby-identifier">namespace</span>)
15
15
  <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">namespace</span>.<span class="ruby-identifier">true?</span>(<span class="ruby-ivar">@value</span>)
16
16
  <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@commands</span>.<span class="ruby-identifier">output</span>(<span class="ruby-identifier">namespace</span>)
@@ -10,7 +10,7 @@
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 233</span>
13
+ <pre><span class="ruby-comment cmt"># File lib/PageTemplate.rb, line 243</span>
14
14
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
15
15
  <span class="ruby-identifier">str</span> = <span class="ruby-keyword kw">super</span>.<span class="ruby-identifier">to_s</span>
16
16
  <span class="ruby-identifier">str</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-ivar">@commands</span>.<span class="ruby-identifier">to_s</span>
@@ -96,9 +96,9 @@ false.
96
96
  <h3 class="section-bar">Methods</h3>
97
97
 
98
98
  <div class="name-list">
99
- <a href="#M000023">new</a>&nbsp;&nbsp;
100
- <a href="#M000024">output</a>&nbsp;&nbsp;
101
- <a href="#M000025">to_s</a>&nbsp;&nbsp;
99
+ <a href="#M000025">new</a>&nbsp;&nbsp;
100
+ <a href="#M000026">output</a>&nbsp;&nbsp;
101
+ <a href="#M000027">to_s</a>&nbsp;&nbsp;
102
102
  </div>
103
103
  </div>
104
104
 
@@ -120,12 +120,12 @@ false.
120
120
  <div id="methods">
121
121
  <h3 class="section-bar">Public Class methods</h3>
122
122
 
123
- <div id="method-M000023" class="method-detail">
124
- <a name="M000023"></a>
123
+ <div id="method-M000025" class="method-detail">
124
+ <a name="M000025"></a>
125
125
 
126
126
  <div class="method-heading">
127
- <a href="IfElseCommand.src/M000023.html" target="Code" class="method-signature"
128
- onclick="popupCode('IfElseCommand.src/M000023.html');return false;">
127
+ <a href="IfElseCommand.src/M000025.html" target="Code" class="method-signature"
128
+ onclick="popupCode('IfElseCommand.src/M000025.html');return false;">
129
129
  <span class="method-name">new</span><span class="method-args">(flag, ifBlock, elseBlock)</span>
130
130
  </a>
131
131
  </div>
@@ -141,12 +141,12 @@ execute when <tt>flag</tt> is false.
141
141
 
142
142
  <h3 class="section-bar">Public Instance methods</h3>
143
143
 
144
- <div id="method-M000024" class="method-detail">
145
- <a name="M000024"></a>
144
+ <div id="method-M000026" class="method-detail">
145
+ <a name="M000026"></a>
146
146
 
147
147
  <div class="method-heading">
148
- <a href="IfElseCommand.src/M000024.html" target="Code" class="method-signature"
149
- onclick="popupCode('IfElseCommand.src/M000024.html');return false;">
148
+ <a href="IfElseCommand.src/M000026.html" target="Code" class="method-signature"
149
+ onclick="popupCode('IfElseCommand.src/M000026.html');return false;">
150
150
  <span class="method-name">output</span><span class="method-args">(namespace)</span>
151
151
  </a>
152
152
  </div>
@@ -160,12 +160,12 @@ if <tt>flag</tt> is true in <tt>namespace</tt>, or the output of the else
160
160
  </div>
161
161
  </div>
162
162
 
163
- <div id="method-M000025" class="method-detail">
164
- <a name="M000025"></a>
163
+ <div id="method-M000027" class="method-detail">
164
+ <a name="M000027"></a>
165
165
 
166
166
  <div class="method-heading">
167
- <a href="IfElseCommand.src/M000025.html" target="Code" class="method-signature"
168
- onclick="popupCode('IfElseCommand.src/M000025.html');return false;">
167
+ <a href="IfElseCommand.src/M000027.html" target="Code" class="method-signature"
168
+ onclick="popupCode('IfElseCommand.src/M000027.html');return false;">
169
169
  <span class="method-name">to_s</span><span class="method-args">()</span>
170
170
  </a>
171
171
  </div>
@@ -5,16 +5,15 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>to_s (IfElseCommand)</title>
8
+ <title>new (IfElseCommand)</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 263</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
15
- <span class="ruby-identifier">str</span> = <span class="ruby-keyword kw">super</span>.<span class="ruby-identifier">to_s</span>
16
- <span class="ruby-identifier">str</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot; - ELSE &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@elseCommands</span>.<span class="ruby-identifier">to_s</span>
17
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">str</span>
13
+ <pre><span class="ruby-comment cmt"># File lib/PageTemplate.rb, line 268</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">flag</span>, <span class="ruby-identifier">ifBlock</span>, <span class="ruby-identifier">elseBlock</span>)
15
+ <span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">flag</span>, <span class="ruby-identifier">ifBlock</span>)
16
+ <span class="ruby-ivar">@elseCommands</span> = <span class="ruby-identifier">elseBlock</span>
18
17
  <span class="ruby-keyword kw">end</span></pre>
19
18
  </body>
20
19
  </html>
@@ -10,7 +10,7 @@
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 254</span>
13
+ <pre><span class="ruby-comment cmt"># File lib/PageTemplate.rb, line 275</span>
14
14
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">output</span>(<span class="ruby-identifier">namespace</span>)
15
15
  <span class="ruby-identifier">result</span> = <span class="ruby-keyword kw">super</span>
16
16
  <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">result</span>
@@ -0,0 +1,20 @@
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>to_s (IfElseCommand)</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 284</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
15
+ <span class="ruby-identifier">str</span> = <span class="ruby-keyword kw">super</span>.<span class="ruby-identifier">to_s</span>
16
+ <span class="ruby-identifier">str</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">&quot; - ELSE &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@elseCommands</span>.<span class="ruby-identifier">to_s</span>
17
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">str</span>
18
+ <span class="ruby-keyword kw">end</span></pre>
19
+ </body>
20
+ </html>
@@ -80,13 +80,6 @@
80
80
 
81
81
  <div id="contextContent">
82
82
 
83
- <div id="description">
84
- <p>
85
- <a href="IncludeCommand.html">IncludeCommand</a> allows including text from
86
- external files.
87
- </p>
88
-
89
- </div>
90
83
 
91
84
 
92
85
  </div>
@@ -95,9 +88,9 @@ external files.
95
88
  <h3 class="section-bar">Methods</h3>
96
89
 
97
90
  <div class="name-list">
98
- <a href="#M000017">new</a>&nbsp;&nbsp;
99
- <a href="#M000018">output</a>&nbsp;&nbsp;
100
- <a href="#M000019">to_s</a>&nbsp;&nbsp;
91
+ <a href="#M000019">new</a>&nbsp;&nbsp;
92
+ <a href="#M000020">output</a>&nbsp;&nbsp;
93
+ <a href="#M000021">to_s</a>&nbsp;&nbsp;
101
94
  </div>
102
95
  </div>
103
96
 
@@ -119,13 +112,13 @@ external files.
119
112
  <div id="methods">
120
113
  <h3 class="section-bar">Public Class methods</h3>
121
114
 
122
- <div id="method-M000017" class="method-detail">
123
- <a name="M000017"></a>
115
+ <div id="method-M000019" class="method-detail">
116
+ <a name="M000019"></a>
124
117
 
125
118
  <div class="method-heading">
126
- <a href="IncludeCommand.src/M000017.html" target="Code" class="method-signature"
127
- onclick="popupCode('IncludeCommand.src/M000017.html');return false;">
128
- <span class="method-name">new</span><span class="method-args">(filename, path = Dir.getwd)</span>
119
+ <a href="IncludeCommand.src/M000019.html" target="Code" class="method-signature"
120
+ onclick="popupCode('IncludeCommand.src/M000019.html');return false;">
121
+ <span class="method-name">new</span><span class="method-args">(filename, path = nil)</span>
129
122
  </a>
130
123
  </div>
131
124
 
@@ -135,12 +128,12 @@ external files.
135
128
 
136
129
  <h3 class="section-bar">Public Instance methods</h3>
137
130
 
138
- <div id="method-M000018" class="method-detail">
139
- <a name="M000018"></a>
131
+ <div id="method-M000020" class="method-detail">
132
+ <a name="M000020"></a>
140
133
 
141
134
  <div class="method-heading">
142
- <a href="IncludeCommand.src/M000018.html" target="Code" class="method-signature"
143
- onclick="popupCode('IncludeCommand.src/M000018.html');return false;">
135
+ <a href="IncludeCommand.src/M000020.html" target="Code" class="method-signature"
136
+ onclick="popupCode('IncludeCommand.src/M000020.html');return false;">
144
137
  <span class="method-name">output</span><span class="method-args">(ns=nil)</span>
145
138
  </a>
146
139
  </div>
@@ -149,12 +142,12 @@ external files.
149
142
  </div>
150
143
  </div>
151
144
 
152
- <div id="method-M000019" class="method-detail">
153
- <a name="M000019"></a>
145
+ <div id="method-M000021" class="method-detail">
146
+ <a name="M000021"></a>
154
147
 
155
148
  <div class="method-heading">
156
- <a href="IncludeCommand.src/M000019.html" target="Code" class="method-signature"
157
- onclick="popupCode('IncludeCommand.src/M000019.html');return false;">
149
+ <a href="IncludeCommand.src/M000021.html" target="Code" class="method-signature"
150
+ onclick="popupCode('IncludeCommand.src/M000021.html');return false;">
158
151
  <span class="method-name">to_s</span><span class="method-args">()</span>
159
152
  </a>
160
153
  </div>
@@ -5,14 +5,22 @@
5
5
 
6
6
  <html>
7
7
  <head>
8
- <title>to_s (IncludeCommand)</title>
8
+ <title>new (IncludeCommand)</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 901</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
15
- <span class="ruby-keyword kw">return</span> <span class="ruby-node">&quot;IncludeCommand {path: '#{@path}' filename: '#{@filename}'}&quot;</span>
13
+ <pre><span class="ruby-comment cmt"># File lib/PageTemplate.rb, line 944</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">filename</span>, <span class="ruby-identifier">path</span> = <span class="ruby-keyword kw">nil</span>)
15
+ <span class="ruby-keyword kw">super</span>()
16
+ <span class="ruby-ivar">@filename</span> = <span class="ruby-identifier">filename</span>
17
+ <span class="ruby-ivar">@path</span> = [ <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">getwd</span>() ]
18
+
19
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">path</span> <span class="ruby-keyword kw">then</span>
20
+ <span class="ruby-ivar">@path</span> = <span class="ruby-ivar">@path</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">path</span>
21
+ <span class="ruby-keyword kw">end</span>
22
+
23
+ <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-constant">Syntax</span><span class="ruby-operator">::</span><span class="ruby-constant">DEFAULT</span>, <span class="ruby-ivar">@path</span>)
16
24
  <span class="ruby-keyword kw">end</span></pre>
17
25
  </body>
18
26
  </html>