PageTemplate 2.2.0 → 2.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. data/Changes +6 -1
  2. data/README.txt +2 -2
  3. data/Rakefile +5 -0
  4. data/lib/PageTemplate.rb +1 -1
  5. data/lib/PageTemplate/commands.rb +6 -1
  6. data/lib/PageTemplate/parser.rb +11 -4
  7. data/pkg/PageTemplate-2.2.3.gem +0 -0
  8. data/test.rb +8 -0
  9. metadata +4 -156
  10. data/doc/classes/PageTemplate.html +0 -203
  11. data/doc/classes/PageTemplate.src/M000001.html +0 -18
  12. data/doc/classes/PageTemplate/BlockCommand.html +0 -230
  13. data/doc/classes/PageTemplate/BlockCommand.src/M000020.html +0 -18
  14. data/doc/classes/PageTemplate/BlockCommand.src/M000021.html +0 -18
  15. data/doc/classes/PageTemplate/BlockCommand.src/M000022.html +0 -18
  16. data/doc/classes/PageTemplate/BlockCommand.src/M000023.html +0 -21
  17. data/doc/classes/PageTemplate/BlockCommand.src/M000024.html +0 -18
  18. data/doc/classes/PageTemplate/CaseCommand.html +0 -252
  19. data/doc/classes/PageTemplate/CaseCommand.src/M000085.html +0 -22
  20. data/doc/classes/PageTemplate/CaseCommand.src/M000086.html +0 -22
  21. data/doc/classes/PageTemplate/CaseCommand.src/M000087.html +0 -19
  22. data/doc/classes/PageTemplate/CaseCommand.src/M000088.html +0 -19
  23. data/doc/classes/PageTemplate/CaseCommand.src/M000089.html +0 -23
  24. data/doc/classes/PageTemplate/CaseCommand.src/M000090.html +0 -23
  25. data/doc/classes/PageTemplate/Command.html +0 -199
  26. data/doc/classes/PageTemplate/Command.src/M000045.html +0 -19
  27. data/doc/classes/PageTemplate/Command.src/M000046.html +0 -18
  28. data/doc/classes/PageTemplate/CommentCommand.html +0 -187
  29. data/doc/classes/PageTemplate/CommentCommand.src/M000028.html +0 -18
  30. data/doc/classes/PageTemplate/CommentCommand.src/M000029.html +0 -18
  31. data/doc/classes/PageTemplate/CommentCommand.src/M000030.html +0 -18
  32. data/doc/classes/PageTemplate/DefaultGlossary.html +0 -121
  33. data/doc/classes/PageTemplate/DefaultPreprocessor.html +0 -232
  34. data/doc/classes/PageTemplate/DefaultPreprocessor.src/M000074.html +0 -18
  35. data/doc/classes/PageTemplate/DefaultPreprocessor.src/M000075.html +0 -18
  36. data/doc/classes/PageTemplate/DefaultPreprocessor.src/M000076.html +0 -20
  37. data/doc/classes/PageTemplate/DefaultPreprocessor.src/M000077.html +0 -22
  38. data/doc/classes/PageTemplate/DefaultPreprocessor.src/M000078.html +0 -18
  39. data/doc/classes/PageTemplate/DefineCommand.html +0 -166
  40. data/doc/classes/PageTemplate/DefineCommand.src/M000079.html +0 -19
  41. data/doc/classes/PageTemplate/DefineCommand.src/M000080.html +0 -19
  42. data/doc/classes/PageTemplate/FileSource.html +0 -222
  43. data/doc/classes/PageTemplate/FileSource.src/M000016.html +0 -28
  44. data/doc/classes/PageTemplate/FileSource.src/M000017.html +0 -32
  45. data/doc/classes/PageTemplate/FileSource.src/M000018.html +0 -20
  46. data/doc/classes/PageTemplate/FileSource.src/M000019.html +0 -30
  47. data/doc/classes/PageTemplate/FilterCommand.html +0 -181
  48. data/doc/classes/PageTemplate/FilterCommand.src/M000065.html +0 -20
  49. data/doc/classes/PageTemplate/FilterCommand.src/M000066.html +0 -18
  50. data/doc/classes/PageTemplate/FilterCommand.src/M000067.html +0 -29
  51. data/doc/classes/PageTemplate/HTGlossary.html +0 -113
  52. data/doc/classes/PageTemplate/IfCommand.html +0 -261
  53. data/doc/classes/PageTemplate/IfCommand.src/M000059.html +0 -24
  54. data/doc/classes/PageTemplate/IfCommand.src/M000060.html +0 -22
  55. data/doc/classes/PageTemplate/IfCommand.src/M000061.html +0 -19
  56. data/doc/classes/PageTemplate/IfCommand.src/M000062.html +0 -20
  57. data/doc/classes/PageTemplate/IfCommand.src/M000063.html +0 -22
  58. data/doc/classes/PageTemplate/IfCommand.src/M000064.html +0 -36
  59. data/doc/classes/PageTemplate/IncludeCommand.html +0 -203
  60. data/doc/classes/PageTemplate/IncludeCommand.src/M000039.html +0 -18
  61. data/doc/classes/PageTemplate/IncludeCommand.src/M000040.html +0 -18
  62. data/doc/classes/PageTemplate/IncludeCommand.src/M000041.html +0 -35
  63. data/doc/classes/PageTemplate/LoopCommand.html +0 -260
  64. data/doc/classes/PageTemplate/LoopCommand.src/M000011.html +0 -24
  65. data/doc/classes/PageTemplate/LoopCommand.src/M000012.html +0 -20
  66. data/doc/classes/PageTemplate/LoopCommand.src/M000013.html +0 -22
  67. data/doc/classes/PageTemplate/LoopCommand.src/M000014.html +0 -77
  68. data/doc/classes/PageTemplate/LoopCommand.src/M000015.html +0 -21
  69. data/doc/classes/PageTemplate/Namespace.html +0 -163
  70. data/doc/classes/PageTemplate/Namespace.src/M000057.html +0 -20
  71. data/doc/classes/PageTemplate/Namespace.src/M000058.html +0 -22
  72. data/doc/classes/PageTemplate/NamespaceItem.html +0 -333
  73. data/doc/classes/PageTemplate/NamespaceItem.src/M000002.html +0 -18
  74. data/doc/classes/PageTemplate/NamespaceItem.src/M000004.html +0 -19
  75. data/doc/classes/PageTemplate/NamespaceItem.src/M000006.html +0 -84
  76. data/doc/classes/PageTemplate/NamespaceItem.src/M000008.html +0 -18
  77. data/doc/classes/PageTemplate/NamespaceItem.src/M000009.html +0 -22
  78. data/doc/classes/PageTemplate/NamespaceItem.src/M000010.html +0 -31
  79. data/doc/classes/PageTemplate/Parser.html +0 -369
  80. data/doc/classes/PageTemplate/Parser.src/M000031.html +0 -18
  81. data/doc/classes/PageTemplate/Parser.src/M000032.html +0 -32
  82. data/doc/classes/PageTemplate/Parser.src/M000033.html +0 -18
  83. data/doc/classes/PageTemplate/Parser.src/M000034.html +0 -30
  84. data/doc/classes/PageTemplate/Parser.src/M000035.html +0 -66
  85. data/doc/classes/PageTemplate/Parser.src/M000036.html +0 -18
  86. data/doc/classes/PageTemplate/Parser.src/M000037.html +0 -18
  87. data/doc/classes/PageTemplate/Parser.src/M000038.html +0 -19
  88. data/doc/classes/PageTemplate/Preprocessor.html +0 -123
  89. data/doc/classes/PageTemplate/Source.html +0 -165
  90. data/doc/classes/PageTemplate/Source.src/M000055.html +0 -18
  91. data/doc/classes/PageTemplate/Source.src/M000056.html +0 -18
  92. data/doc/classes/PageTemplate/StackableCommand.html +0 -205
  93. data/doc/classes/PageTemplate/StackableCommand.src/M000081.html +0 -17
  94. data/doc/classes/PageTemplate/StackableCommand.src/M000082.html +0 -18
  95. data/doc/classes/PageTemplate/StackableCommand.src/M000083.html +0 -18
  96. data/doc/classes/PageTemplate/StackableCommand.src/M000084.html +0 -18
  97. data/doc/classes/PageTemplate/StringSource.html +0 -163
  98. data/doc/classes/PageTemplate/StringSource.src/M000053.html +0 -23
  99. data/doc/classes/PageTemplate/StringSource.src/M000054.html +0 -18
  100. data/doc/classes/PageTemplate/SyntaxGlossary.html +0 -263
  101. data/doc/classes/PageTemplate/SyntaxGlossary.src/M000047.html +0 -22
  102. data/doc/classes/PageTemplate/SyntaxGlossary.src/M000048.html +0 -24
  103. data/doc/classes/PageTemplate/SyntaxGlossary.src/M000049.html +0 -18
  104. data/doc/classes/PageTemplate/SyntaxGlossary.src/M000050.html +0 -21
  105. data/doc/classes/PageTemplate/SyntaxGlossary.src/M000051.html +0 -21
  106. data/doc/classes/PageTemplate/SyntaxGlossary.src/M000052.html +0 -22
  107. data/doc/classes/PageTemplate/Template.html +0 -208
  108. data/doc/classes/PageTemplate/Template.src/M000071.html +0 -19
  109. data/doc/classes/PageTemplate/Template.src/M000072.html +0 -18
  110. data/doc/classes/PageTemplate/Template.src/M000073.html +0 -29
  111. data/doc/classes/PageTemplate/TextCommand.html +0 -185
  112. data/doc/classes/PageTemplate/TextCommand.src/M000068.html +0 -18
  113. data/doc/classes/PageTemplate/TextCommand.src/M000069.html +0 -18
  114. data/doc/classes/PageTemplate/TextCommand.src/M000070.html +0 -18
  115. data/doc/classes/PageTemplate/UnknownCommand.html +0 -191
  116. data/doc/classes/PageTemplate/UnknownCommand.src/M000025.html +0 -24
  117. data/doc/classes/PageTemplate/UnknownCommand.src/M000026.html +0 -18
  118. data/doc/classes/PageTemplate/UnknownCommand.src/M000027.html +0 -18
  119. data/doc/classes/PageTemplate/ValueCommand.html +0 -206
  120. data/doc/classes/PageTemplate/ValueCommand.src/M000042.html +0 -19
  121. data/doc/classes/PageTemplate/ValueCommand.src/M000043.html +0 -27
  122. data/doc/classes/PageTemplate/ValueCommand.src/M000044.html +0 -21
  123. data/doc/created.rid +0 -1
  124. data/doc/files/README_txt.html +0 -225
  125. data/doc/files/lib/PageTemplate/case_rb.html +0 -115
  126. data/doc/files/lib/PageTemplate/commands_rb.html +0 -111
  127. data/doc/files/lib/PageTemplate/htglossary_rb.html +0 -110
  128. data/doc/files/lib/PageTemplate/parser_rb.html +0 -111
  129. data/doc/files/lib/PageTemplate_rb.html +0 -139
  130. data/doc/fr_class_index.html +0 -52
  131. data/doc/fr_file_index.html +0 -32
  132. data/doc/fr_method_index.html +0 -116
  133. data/doc/index.html +0 -24
  134. data/doc/rdoc-style.css +0 -208
@@ -1,24 +0,0 @@
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::UnknownCommand)</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/commands.rb, line 64</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">output</span>(<span class="ruby-identifier">namespace</span>)
15
- <span class="ruby-identifier">cls</span> = <span class="ruby-identifier">namespace</span>.<span class="ruby-identifier">parser</span>.<span class="ruby-identifier">glossary</span>.<span class="ruby-identifier">lookup</span>(<span class="ruby-ivar">@command</span>)
16
- <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">cls</span>
17
- <span class="ruby-keyword kw">when</span> <span class="ruby-constant">UnknownCommand</span>
18
- <span class="ruby-node">&quot;[ Unknown Command: #{@command} ]&quot;</span>
19
- <span class="ruby-keyword kw">else</span>
20
- <span class="ruby-identifier">cls</span>.<span class="ruby-identifier">output</span>(<span class="ruby-identifier">namespace</span>)
21
- <span class="ruby-keyword kw">end</span>
22
- <span class="ruby-keyword kw">end</span></pre>
23
- </body>
24
- </html>
@@ -1,18 +0,0 @@
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>new (PageTemplate::UnknownCommand)</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/commands.rb, line 75</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">command</span>)
15
- <span class="ruby-ivar">@command</span> = <span class="ruby-identifier">command</span>
16
- <span class="ruby-keyword kw">end</span></pre>
17
- </body>
18
- </html>
@@ -1,18 +0,0 @@
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 (PageTemplate::UnknownCommand)</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/commands.rb, line 78</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
15
- <span class="ruby-node">&quot;[ UnknownCommand: #{@command} ]&quot;</span>
16
- <span class="ruby-keyword kw">end</span></pre>
17
- </body>
18
- </html>
@@ -1,206 +0,0 @@
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: PageTemplate::ValueCommand</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">PageTemplate::ValueCommand</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../files/lib/PageTemplate/commands_rb.html">
59
- lib/PageTemplate/commands.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="ValueCommand.html">ValueCommand</a> will print out a variable
86
- name, possibly passing its value through a preprocessor.
87
- </p>
88
- <dl>
89
- <dt>% var variable [:processor</dt><dd>%]
90
-
91
- </dd>
92
- </dl>
93
- <p>
94
- <tt>variable</tt> is first plucked out of the <a
95
- href="Namespace.html">Namespace</a>,
96
- </p>
97
- <p>
98
- The <a href="ValueCommand.html#M000044">to_s</a> of the output from
99
- Namespace#get is passed through parser&#8217;s preprocessor. If :processor
100
- is defined, then parser.preprocessor.send(:processor,body) is called. This
101
- allows the designer to choose a particular format for the output. If
102
- :processor is not given, then parser&#8217;s default processor is used.
103
- </p>
104
-
105
- </div>
106
-
107
-
108
- </div>
109
-
110
- <div id="method-list">
111
- <h3 class="section-bar">Methods</h3>
112
-
113
- <div class="name-list">
114
- <a href="#M000042">new</a>&nbsp;&nbsp;
115
- <a href="#M000043">output</a>&nbsp;&nbsp;
116
- <a href="#M000044">to_s</a>&nbsp;&nbsp;
117
- </div>
118
- </div>
119
-
120
- </div>
121
-
122
-
123
- <!-- if includes -->
124
-
125
- <div id="section">
126
-
127
-
128
-
129
-
130
-
131
-
132
-
133
-
134
- <!-- if method_list -->
135
- <div id="methods">
136
- <h3 class="section-bar">Public Class methods</h3>
137
-
138
- <div id="method-M000042" class="method-detail">
139
- <a name="M000042"></a>
140
-
141
- <div class="method-heading">
142
- <a href="ValueCommand.src/M000042.html" target="Code" class="method-signature"
143
- onclick="popupCode('ValueCommand.src/M000042.html');return false;">
144
- <span class="method-name">new</span><span class="method-args">(value,preprocessor)</span>
145
- </a>
146
- </div>
147
-
148
- <div class="method-description">
149
- <p>
150
- Creates the <a href="ValueCommand.html">ValueCommand</a>, with
151
- <tt>value</tt> as the name of the variable to be inserted during output.
152
- <tt>parser</tt> is the <a href="Parser.html">Parser</a> object, which we
153
- save so we can access its <a href="Preprocessor.html">Preprocessor</a> and
154
- its default preprocessor
155
- </p>
156
- </div>
157
- </div>
158
-
159
- <h3 class="section-bar">Public Instance methods</h3>
160
-
161
- <div id="method-M000043" class="method-detail">
162
- <a name="M000043"></a>
163
-
164
- <div class="method-heading">
165
- <a href="ValueCommand.src/M000043.html" target="Code" class="method-signature"
166
- onclick="popupCode('ValueCommand.src/M000043.html');return false;">
167
- <span class="method-name">output</span><span class="method-args">(namespace = nil)</span>
168
- </a>
169
- </div>
170
-
171
- <div class="method-description">
172
- <p>
173
- Requests the value of this object&#8217;s saved value name from
174
- <tt>namespace</tt>, and returns the string representation of that value to
175
- the caller, after passing it through the preprocessor.
176
- </p>
177
- </div>
178
- </div>
179
-
180
- <div id="method-M000044" class="method-detail">
181
- <a name="M000044"></a>
182
-
183
- <div class="method-heading">
184
- <a href="ValueCommand.src/M000044.html" target="Code" class="method-signature"
185
- onclick="popupCode('ValueCommand.src/M000044.html');return false;">
186
- <span class="method-name">to_s</span><span class="method-args">()</span>
187
- </a>
188
- </div>
189
-
190
- <div class="method-description">
191
- </div>
192
- </div>
193
-
194
-
195
- </div>
196
-
197
-
198
- </div>
199
-
200
-
201
- <div id="validator-badges">
202
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
203
- </div>
204
-
205
- </body>
206
- </html>
@@ -1,19 +0,0 @@
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>new (PageTemplate::ValueCommand)</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/commands.rb, line 274</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">value</span>,<span class="ruby-identifier">preprocessor</span>)
15
- <span class="ruby-ivar">@value</span> = <span class="ruby-identifier">value</span>
16
- <span class="ruby-ivar">@processor</span> = <span class="ruby-identifier">preprocessor</span>
17
- <span class="ruby-keyword kw">end</span></pre>
18
- </body>
19
- </html>
@@ -1,27 +0,0 @@
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::ValueCommand)</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/commands.rb, line 282</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-identifier">parser</span> = <span class="ruby-identifier">namespace</span>.<span class="ruby-identifier">parser</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">namespace</span>
16
- <span class="ruby-identifier">parser</span> = <span class="ruby-constant">Parser</span>.<span class="ruby-identifier">recent_parser</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">parser</span>
17
- <span class="ruby-identifier">namespace</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">parser</span>
18
- <span class="ruby-identifier">preprocessor</span> = <span class="ruby-identifier">parser</span>.<span class="ruby-identifier">preprocessor</span>
19
- <span class="ruby-identifier">processor</span> = <span class="ruby-ivar">@processor</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">parser</span>.<span class="ruby-identifier">default_processor</span>
20
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">preprocessor</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">processor</span>)
21
- <span class="ruby-identifier">preprocessor</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">processor</span>,<span class="ruby-identifier">namespace</span>.<span class="ruby-identifier">get</span>(<span class="ruby-ivar">@value</span>).<span class="ruby-identifier">to_s</span>)
22
- <span class="ruby-keyword kw">else</span>
23
- <span class="ruby-node">&quot;[ ValueCommand: unknown preprocessor #{@processor} ]&quot;</span>
24
- <span class="ruby-keyword kw">end</span>
25
- <span class="ruby-keyword kw">end</span></pre>
26
- </body>
27
- </html>
@@ -1,21 +0,0 @@
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 (PageTemplate::ValueCommand)</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/commands.rb, line 295</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-node">&quot;[ Value: #{@value} &quot;</span>
16
- <span class="ruby-identifier">str</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;:#{@processor} &quot;</span> <span class="ruby-keyword kw">if</span> (<span class="ruby-ivar">@processor</span>)
17
- <span class="ruby-identifier">str</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">']'</span>
18
- <span class="ruby-identifier">str</span>
19
- <span class="ruby-keyword kw">end</span></pre>
20
- </body>
21
- </html>
@@ -1 +0,0 @@
1
- Thu Mar 02 13:52:50 GMT-8:00 2006
@@ -1,225 +0,0 @@
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>File: README.txt</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="fileHeader">
50
- <h1>README.txt</h1>
51
- <table class="header-table">
52
- <tr class="top-aligned-row">
53
- <td><strong>Path:</strong></td>
54
- <td>README.txt
55
- </td>
56
- </tr>
57
- <tr class="top-aligned-row">
58
- <td><strong>Last Update:</strong></td>
59
- <td>Wed Apr 13 21:44:19 GMT-8:00 2005</td>
60
- </tr>
61
- </table>
62
- </div>
63
- <!-- banner header -->
64
-
65
- <div id="bodyContent">
66
-
67
-
68
-
69
- <div id="contextContent">
70
-
71
- <div id="description">
72
- <h1>PageTemplate.rb README</h1>
73
- <p>
74
- Use PageTemplate.rb to create output based on template pages and the code
75
- of your program. This package is inspired by, but not quite like,
76
- Perl&#8217;s HTML::Template package. Its main intent is to separate design
77
- and code for CGI programs, but it could be useful in other contexts as well
78
- (Ex: site generation packages).
79
- </p>
80
- <p>
81
- PageTemplate.rb is distributed under the MIT License, which is included
82
- within this document in the License section.
83
- </p>
84
- <p>
85
- As a side note: if you are using <a
86
- href="../classes/PageTemplate.html">PageTemplate</a> in your projects, or
87
- add features to your copy, I&#8217;d love to hear about it. If you feel
88
- like it.
89
- </p>
90
- <p>
91
- Brian Wisti (brianwisti@rubyforge.org) Greg Millam (walker@rubyforge.org)
92
- <a
93
- href="http://www.coolnamehere.com/products/pagetemplate">www.coolnamehere.com/products/pagetemplate</a>/
94
- </p>
95
- <h2>Features</h2>
96
- <ul>
97
- <li>Variable substitution
98
-
99
- </li>
100
- <li>If, Unless, and If/Else structures
101
-
102
- </li>
103
- <li>Loops and Loop/Else structures
104
-
105
- </li>
106
- <li>Customizable Syntax
107
-
108
- </li>
109
- <li>Include content from external files (new in 1.1)
110
-
111
- </li>
112
- </ul>
113
- <h2>Requirements</h2>
114
- <pre>
115
- * ruby 1.8
116
- </pre>
117
- <h2>Install</h2>
118
- <h3>Generic Install</h3>
119
- <p>
120
- De-Compress archive and enter its top directory. Then type:
121
- </p>
122
- <pre>
123
- ($ su)
124
- # ruby setup.rb
125
- </pre>
126
- <p>
127
- You can also install files into your favorite directory by supplying
128
- setup.rb some options. Try &quot;ruby setup.rb &#8212;help&quot;. Since we
129
- don&#8217;t really know how setup.rb works, we&#8217;ve included the
130
- English-language version of the setup usage file. Enjoy.
131
- </p>
132
- <h3>Install With Rake</h3>
133
- <pre>
134
- $ rake
135
- $ sudo rake install
136
- </pre>
137
- <h3>Install With RubyGems</h3>
138
- <p>
139
- Download the gem file from the [<a
140
- href="../classes/PageTemplate.html">PageTemplate</a> RubyForge page]:<a
141
- href="http://rubyforge.org/projects/pagetemplate">rubyforge.org/projects/pagetemplate</a>/
142
- </p>
143
- <p>
144
- Then, use the gem command to install it:
145
- </p>
146
- <pre>
147
- $ sudo gem install -l PageTemplate-2.0.0.gem
148
- </pre>
149
- <p>
150
- I think that&#8217;s all there is to it. I&#8217;m new to gems, though, so
151
- let me know if I missed something.
152
- </p>
153
- <h2>Usage</h2>
154
- <p>
155
- PageTemplate.rb is a class library, and has no command line or interactive
156
- capabilities. See <a href="../classes/PageTemplate.html">PageTemplate</a>
157
- for a reference to the classes and methods contained in this package. There
158
- is a tutorial and user guide available online, at <a
159
- href="http://coolnamehere.com/products/pagetemplate">coolnamehere.com/products/pagetemplate</a>/
160
- </p>
161
- <h2>License</h2>
162
- <p>
163
- The MIT License
164
- </p>
165
- <p>
166
- Copyright &#169; 2002-2005 Brian Wisti, Greg Millam
167
- </p>
168
- <p>
169
- Permission is hereby granted, free of charge, to any person obtaining a
170
- copy of this software and associated documentation files (the
171
- &quot;Software&quot;), to deal in the Software without restriction,
172
- including without limitation the rights to use, copy, modify, merge,
173
- publish, distribute, sublicense, and/or sell copies of the Software, and to
174
- permit persons to whom the Software is furnished to do so, subject to the
175
- following conditions:
176
- </p>
177
- <p>
178
- The above copyright notice and this permission notice shall be included in
179
- all copies or substantial portions of the Software.
180
- </p>
181
- <p>
182
- THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND,
183
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
184
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
185
- NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
186
- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
187
- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
188
- USE OR OTHER DEALINGS IN THE SOFTWARE.
189
- </p>
190
- <p>
191
- Brian Wisti (brianwisti@rubyforge.org) Greg Millam (walker@rubyforge.org)
192
- </p>
193
-
194
- </div>
195
-
196
-
197
- </div>
198
-
199
-
200
- </div>
201
-
202
-
203
- <!-- if includes -->
204
-
205
- <div id="section">
206
-
207
-
208
-
209
-
210
-
211
-
212
-
213
-
214
- <!-- if method_list -->
215
-
216
-
217
- </div>
218
-
219
-
220
- <div id="validator-badges">
221
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
222
- </div>
223
-
224
- </body>
225
- </html>