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
Binary file
data/tdata/CVS/Entries ADDED
@@ -0,0 +1,28 @@
1
+ /complex.txt/1.1.1.1/Wed Mar 9 01:30:10 2005//
2
+ /i1.txt/1.1.1.1/Wed Mar 9 01:30:10 2005//
3
+ /i2.txt/1.1.1.1/Wed Mar 9 01:30:10 2005//
4
+ /ib1.txt/1.1.1.1/Wed Mar 9 01:30:10 2005//
5
+ /ib2.txt/1.1.1.1/Wed Mar 9 01:30:10 2005//
6
+ /ie1.txt/1.1.1.1/Wed Mar 9 01:30:10 2005//
7
+ /ie2.txt/1.1.1.1/Wed Mar 9 01:30:10 2005//
8
+ /include.1.txt/1.1.1.1/Wed Mar 9 01:30:10 2005//
9
+ /include.2.txt/1.1.1.1/Wed Mar 9 01:30:10 2005//
10
+ /include.3.txt/1.1.1.1/Wed Mar 9 01:30:10 2005//
11
+ /include.4.out.txt/1.1.1.1/Wed Mar 9 01:30:10 2005//
12
+ /include.4.txt/1.1.1.1/Wed Mar 9 01:30:10 2005//
13
+ /include.4a.txt/1.1.1.1/Wed Mar 9 01:30:10 2005//
14
+ /include.4b.txt/1.1.1.1/Wed Mar 9 01:30:10 2005//
15
+ /include.5.txt/1.1.1.1/Wed Mar 9 01:30:10 2005//
16
+ /l1.txt/1.1.1.1/Wed Mar 9 01:30:10 2005//
17
+ /l2.txt/1.1.1.1/Wed Mar 9 01:30:10 2005//
18
+ /nm.txt/1.1.1.1/Wed Mar 9 01:30:10 2005//
19
+ /t.txt/1.1.1.1/Wed Mar 9 01:30:10 2005//
20
+ /v1.txt/1.1.1.1/Wed Mar 9 01:30:10 2005//
21
+ /v2.txt/1.1.1.1/Wed Mar 9 01:30:10 2005//
22
+ D/p////
23
+ /metadata.1.txt/1.1/Thu Mar 10 08:38:10 2005//
24
+ /metadata.2.txt/1.1/Thu Mar 10 09:13:29 2005//
25
+ /metadata.3.txt/1.1/Thu Mar 10 09:21:33 2005//
26
+ /metadata.4.txt/1.1/Thu Mar 10 09:35:58 2005//
27
+ /include.4.nf.out.txt/1.1/Thu Mar 10 07:10:26 2005//
28
+ /cm.txt/1.1/Wed Mar 9 21:35:36 2005//
@@ -0,0 +1 @@
1
+ PageTemplate/tdata
data/tdata/CVS/Root ADDED
@@ -0,0 +1 @@
1
+ /home/wisti/CVS
data/tdata/cm.txt ADDED
@@ -0,0 +1,3 @@
1
+ This is a line of text.
2
+ [%-- This is a comment --%]
3
+ This is more text.
@@ -0,0 +1,2 @@
1
+ alpha
2
+ File secret-of-life.txt not found.gamma
@@ -0,0 +1,5 @@
1
+ <ul>
2
+ [%in loop%]
3
+ [%if __FIRST__ %]<li>--[%var v %]--</li>[%else %]<li>[%var v %]</li>[%endif %]
4
+ [%endin %]
5
+ </ul>
@@ -0,0 +1,5 @@
1
+ <ul>
2
+ [%in loop%]
3
+ [%if __LAST__ %]<li>--[%var v %]--</li>[%else %]<li>[%var v %]</li>[%endif %]
4
+ [%endin %]
5
+ </ul>
@@ -0,0 +1,5 @@
1
+ <ul>
2
+ [%in loop%]
3
+ [%if __ODD__ %]<li>--[%var v %]--</li>[%else %]<li>[%var v %]</li>[%endif %]
4
+ [%endin %]
5
+ </ul>
@@ -0,0 +1,5 @@
1
+ <ul>
2
+ [%in loop%]
3
+ [%if __TOGGLE__ %]<li>--[%var v %]--</li>[%else %]<li>[%var v %]</li>[%endif %]
4
+ [%endin %]
5
+ </ul>
@@ -0,0 +1,5 @@
1
+ /_b1.txt/1.1.1.1/Wed Mar 9 01:30:10 2005//
2
+ /b1.txt/1.1.1.1/Wed Mar 9 01:30:10 2005//
3
+ /cb1.txt/1.1.1.1/Wed Mar 9 01:30:10 2005//
4
+ /b2.txt/0/Initial b2.txt//
5
+ D
@@ -0,0 +1 @@
1
+ PageTemplate/tdata/p
data/tdata/p/CVS/Root ADDED
@@ -0,0 +1 @@
1
+ /home/wisti/CVS
File without changes
data/tdata/p/b2.txt ADDED
@@ -0,0 +1,4 @@
1
+ Hello [%var world%]
2
+ [%unless return%]
3
+ Welcome!
4
+ [%endunless%]
data/tdata/p/b2.txt~ ADDED
@@ -0,0 +1,4 @@
1
+ Hello [%var world%]
2
+ [%if return%]
3
+ Welcome Back!
4
+ [%endif%]
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.6
3
3
  specification_version: 1
4
4
  name: PageTemplate
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.1.2
7
- date: 2005-03-06
6
+ version: 1.2.0
7
+ date: 2005-03-11
8
8
  summary: A simple templating system for Web sites.
9
9
  require_paths:
10
10
  - lib
@@ -28,18 +28,28 @@ authors:
28
28
  - Brian Wisti
29
29
  files:
30
30
  - README.txt
31
+ - Changes~
32
+ - TC_PageTemplate.rb~
31
33
  - MANIFEST
32
34
  - install.rb
33
35
  - lib
34
36
  - doc
35
37
  - config.save
38
+ - CVS
39
+ - Changes
36
40
  - test-install.rb
37
41
  - Rakefile
42
+ - InstalledFiles
38
43
  - tdata
39
44
  - TC_PageTemplate.rb
45
+ - Rakefile~
40
46
  - pkg
41
47
  - lib/PageTemplate.rb
42
- - lib/MANIFEST
48
+ - lib/PageTemplate.rb~
49
+ - lib/CVS
50
+ - lib/CVS/Repository
51
+ - lib/CVS/Root
52
+ - lib/CVS/Entries
43
53
  - doc/fr_class_index.html
44
54
  - doc/index.html
45
55
  - doc/fr_file_index.html
@@ -50,8 +60,10 @@ files:
50
60
  - doc/fr_method_index.html
51
61
  - doc/classes/LoopCommand.html
52
62
  - doc/classes/LoopCommand.src
63
+ - doc/classes/UnlessCommand.src
53
64
  - doc/classes/Syntax
54
65
  - doc/classes/LoopElseCommand.src
66
+ - doc/classes/UnlessCommand.html
55
67
  - doc/classes/LoopElseCommand.html
56
68
  - doc/classes/IfCommand.src
57
69
  - doc/classes/ValueCommand.src
@@ -61,11 +73,14 @@ files:
61
73
  - doc/classes/Namespace.html
62
74
  - doc/classes/Command.html
63
75
  - doc/classes/BlockCommand.html
76
+ - doc/classes/IncludeCommandError.html
64
77
  - doc/classes/Command.src
65
78
  - doc/classes/PageTemplate.src
66
79
  - doc/classes/BlockCommand.src
67
80
  - doc/classes/TextCommand.html
81
+ - doc/classes/CommentCommand.src
68
82
  - doc/classes/TextCommand.src
83
+ - doc/classes/CommentCommand.html
69
84
  - doc/classes/Syntax.html
70
85
  - doc/classes/IfCommand.html
71
86
  - doc/classes/IfElseCommand.src
@@ -75,82 +90,95 @@ files:
75
90
  - doc/classes/LoopCommand.src/M000002.html
76
91
  - doc/classes/LoopCommand.src/M000003.html
77
92
  - doc/classes/LoopCommand.src/M000001.html
93
+ - doc/classes/UnlessCommand.src/M000028.html
78
94
  - doc/classes/Syntax/CachedParser.src
79
95
  - doc/classes/Syntax/Parser.html
80
96
  - doc/classes/Syntax/Glossary.html
81
97
  - doc/classes/Syntax/CachedParser.html
82
98
  - doc/classes/Syntax/Parser.src
83
99
  - doc/classes/Syntax/Glossary.src
84
- - doc/classes/Syntax/CachedParser.src/M000046.html
85
- - doc/classes/Syntax/CachedParser.src/M000045.html
100
+ - doc/classes/Syntax/CachedParser.src/M000048.html
101
+ - doc/classes/Syntax/CachedParser.src/M000049.html
86
102
  - doc/classes/Syntax/Parser.src/M000052.html
87
103
  - doc/classes/Syntax/Parser.src/M000054.html
88
- - doc/classes/Syntax/Parser.src/M000050.html
89
- - doc/classes/Syntax/Parser.src/M000049.html
104
+ - doc/classes/Syntax/Parser.src/M000056.html
105
+ - doc/classes/Syntax/Parser.src/M000055.html
106
+ - doc/classes/Syntax/Parser.src/M000057.html
90
107
  - doc/classes/Syntax/Parser.src/M000053.html
91
- - doc/classes/Syntax/Parser.src/M000051.html
92
- - doc/classes/Syntax/Glossary.src/M000047.html
93
- - doc/classes/Syntax/Glossary.src/M000048.html
108
+ - doc/classes/Syntax/Glossary.src/M000050.html
109
+ - doc/classes/Syntax/Glossary.src/M000051.html
110
+ - doc/classes/LoopElseCommand.src/M000023.html
111
+ - doc/classes/LoopElseCommand.src/M000024.html
94
112
  - doc/classes/LoopElseCommand.src/M000022.html
95
- - doc/classes/LoopElseCommand.src/M000021.html
96
- - doc/classes/LoopElseCommand.src/M000020.html
97
- - doc/classes/IfCommand.src/M000041.html
98
- - doc/classes/IfCommand.src/M000039.html
99
- - doc/classes/IfCommand.src/M000040.html
100
- - doc/classes/ValueCommand.src/M000026.html
101
- - doc/classes/ValueCommand.src/M000027.html
102
- - doc/classes/ValueCommand.src/M000028.html
103
- - doc/classes/Command.src/M000029.html
104
- - doc/classes/Command.src/M000030.html
113
+ - doc/classes/IfCommand.src/M000042.html
114
+ - doc/classes/IfCommand.src/M000044.html
115
+ - doc/classes/IfCommand.src/M000043.html
116
+ - doc/classes/ValueCommand.src/M000031.html
117
+ - doc/classes/ValueCommand.src/M000029.html
118
+ - doc/classes/ValueCommand.src/M000030.html
119
+ - doc/classes/Command.src/M000033.html
120
+ - doc/classes/Command.src/M000032.html
105
121
  - doc/classes/PageTemplate.src/M000013.html
106
122
  - doc/classes/PageTemplate.src/M000014.html
123
+ - doc/classes/PageTemplate.src/M000018.html
107
124
  - doc/classes/PageTemplate.src/M000010.html
108
125
  - doc/classes/PageTemplate.src/M000015.html
109
126
  - doc/classes/PageTemplate.src/M000012.html
127
+ - doc/classes/PageTemplate.src/M000017.html
110
128
  - doc/classes/PageTemplate.src/M000016.html
111
- - doc/classes/PageTemplate.src/M000009.html
112
129
  - doc/classes/PageTemplate.src/M000011.html
113
130
  - doc/classes/BlockCommand.src/M000007.html
114
131
  - doc/classes/BlockCommand.src/M000005.html
115
132
  - doc/classes/BlockCommand.src/M000006.html
116
133
  - doc/classes/BlockCommand.src/M000004.html
117
134
  - doc/classes/BlockCommand.src/M000008.html
118
- - doc/classes/TextCommand.src/M000042.html
119
- - doc/classes/TextCommand.src/M000044.html
120
- - doc/classes/TextCommand.src/M000043.html
121
- - doc/classes/IfElseCommand.src/M000023.html
122
- - doc/classes/IfElseCommand.src/M000024.html
135
+ - doc/classes/CommentCommand.src/M000009.html
136
+ - doc/classes/TextCommand.src/M000047.html
137
+ - doc/classes/TextCommand.src/M000046.html
138
+ - doc/classes/TextCommand.src/M000045.html
123
139
  - doc/classes/IfElseCommand.src/M000025.html
124
- - doc/classes/IncludeCommand.src/M000018.html
140
+ - doc/classes/IfElseCommand.src/M000026.html
141
+ - doc/classes/IfElseCommand.src/M000027.html
142
+ - doc/classes/IncludeCommand.src/M000021.html
143
+ - doc/classes/IncludeCommand.src/M000020.html
125
144
  - doc/classes/IncludeCommand.src/M000019.html
126
- - doc/classes/IncludeCommand.src/M000017.html
127
145
  - doc/classes/Namespace.src/M000036.html
128
- - doc/classes/Namespace.src/M000031.html
146
+ - doc/classes/Namespace.src/M000041.html
129
147
  - doc/classes/Namespace.src/M000035.html
148
+ - doc/classes/Namespace.src/M000039.html
130
149
  - doc/classes/Namespace.src/M000037.html
131
- - doc/classes/Namespace.src/M000033.html
150
+ - doc/classes/Namespace.src/M000040.html
132
151
  - doc/classes/Namespace.src/M000034.html
133
- - doc/classes/Namespace.src/M000032.html
134
152
  - doc/classes/Namespace.src/M000038.html
135
153
  - doc/files/lib
136
154
  - doc/files/README_txt.html
137
155
  - doc/files/lib/PageTemplate_rb.html
156
+ - CVS/Repository
157
+ - CVS/Root
158
+ - CVS/Entries
138
159
  - tdata/include.3.txt
139
160
  - tdata/include.2.txt
140
161
  - tdata/ib2.txt
141
162
  - tdata/include.4b.txt
163
+ - tdata/cm.txt
142
164
  - tdata/t.txt
143
165
  - tdata/p
144
166
  - tdata/v2.txt
145
167
  - tdata/l2.txt
168
+ - tdata/metadata.2.txt
146
169
  - tdata/ib1.txt
147
170
  - tdata/v1.txt
148
171
  - tdata/complex.txt
172
+ - tdata/metadata.1.txt
149
173
  - tdata/i2.txt
174
+ - tdata/CVS
150
175
  - tdata/include.4.out.txt
151
176
  - tdata/nm.txt
177
+ - tdata/include.4.nf.out.txt
178
+ - tdata/metadata.3.txt
152
179
  - tdata/include.4a.txt
153
180
  - tdata/ie1.txt
181
+ - tdata/metadata.4.txt
154
182
  - tdata/include.4.txt
155
183
  - tdata/l1.txt
156
184
  - tdata/include.5.txt
@@ -158,9 +186,19 @@ files:
158
186
  - tdata/ie2.txt
159
187
  - tdata/include.1.txt
160
188
  - tdata/p/b1.txt
189
+ - tdata/p/b2.txt~
190
+ - tdata/p/CVS
191
+ - tdata/p/b2.txt
161
192
  - tdata/p/cb1.txt
162
193
  - tdata/p/_b1.txt
163
- - pkg/PageTemplate-1.1.2.gem
194
+ - tdata/p/CVS/Repository
195
+ - tdata/p/CVS/Root
196
+ - tdata/p/CVS/Entries
197
+ - tdata/p/CVS/b2.txt,t
198
+ - tdata/CVS/Repository
199
+ - tdata/CVS/Root
200
+ - tdata/CVS/Entries
201
+ - pkg/PageTemplate-1.2.0.gem
164
202
  test_files:
165
203
  - TC_PageTemplate.rb
166
204
  rdoc_options: []
@@ -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 (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 247</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>
17
- <span class="ruby-keyword kw">end</span></pre>
18
- </body>
19
- </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>new (IncludeCommand)</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 885</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-constant">Dir</span>.<span class="ruby-identifier">getwd</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-identifier">path</span>
18
- <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>)
19
- <span class="ruby-keyword kw">end</span></pre>
20
- </body>
21
- </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 (LoopElseCommand)</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 326</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">loopName</span>, <span class="ruby-identifier">trueBlock</span>, <span class="ruby-identifier">elseBlock</span>)
15
- <span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">loopName</span>, <span class="ruby-identifier">trueBlock</span>)
16
- <span class="ruby-ivar">@elseCommands</span> = <span class="ruby-identifier">elseBlock</span>
17
- <span class="ruby-keyword kw">end</span></pre>
18
- </body>
19
- </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>[]= (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 26</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-keyword kw">self</span>.<span class="ruby-identifier">set</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</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>[] (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 31</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-keyword kw">self</span>.<span class="ruby-identifier">get</span>(<span class="ruby-identifier">key</span>)
16
- <span class="ruby-keyword kw">end</span></pre>
17
- </body>
18
- </html>
@@ -1,46 +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)</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 790</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>]
21
- <span class="ruby-keyword kw">else</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-keyword kw">if</span> <span class="ruby-identifier">args</span>[<span class="ruby-value str">'include_path'</span>]
26
- <span class="ruby-ivar">@path</span> = <span class="ruby-identifier">args</span>[<span class="ruby-value str">'include_path'</span>]
27
- <span class="ruby-keyword kw">else</span>
28
- <span class="ruby-ivar">@path</span> = <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">getwd</span>()
29
- <span class="ruby-keyword kw">end</span>
30
-
31
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">args</span>[<span class="ruby-value str">'use_cache'</span>]
32
- <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>)
33
- <span class="ruby-keyword kw">else</span>
34
- <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>)
35
- <span class="ruby-keyword kw">end</span>
36
-
37
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">args</span>[<span class="ruby-value str">'filename'</span>]
38
- <span class="ruby-ivar">@file</span> = <span class="ruby-identifier">args</span>[<span class="ruby-value str">'filename'</span>]
39
- <span class="ruby-identifier">load</span>(<span class="ruby-ivar">@file</span>)
40
- <span class="ruby-keyword kw">else</span>
41
- <span class="ruby-ivar">@file</span> = <span class="ruby-keyword kw">nil</span>
42
- <span class="ruby-keyword kw">end</span>
43
-
44
- <span class="ruby-keyword kw">end</span></pre>
45
- </body>
46
- </html>
@@ -1,35 +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>build (Syntax::Parser)</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 485</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">build</span>(<span class="ruby-identifier">filename</span>)
15
- <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-identifier">filename</span>)
16
- <span class="ruby-identifier">file</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">filename</span>)
17
- <span class="ruby-keyword kw">else</span>
18
- <span class="ruby-identifier">file</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-ivar">@path</span>, <span class="ruby-identifier">filename</span>))
19
- <span class="ruby-keyword kw">end</span>
20
-
21
- <span class="ruby-comment cmt"># If this is a new file, or the file has been changed,</span>
22
- <span class="ruby-comment cmt"># parse and compile.</span>
23
- <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">filename</span> <span class="ruby-operator">!=</span> <span class="ruby-ivar">@lastFile</span> <span class="ruby-keyword kw">or</span> <span class="ruby-identifier">file</span>.<span class="ruby-identifier">mtime</span> <span class="ruby-operator">&lt;</span> <span class="ruby-ivar">@mTime</span>
24
- <span class="ruby-identifier">reset</span>
25
- <span class="ruby-identifier">source</span> = <span class="ruby-identifier">file</span>.<span class="ruby-identifier">readlines</span>
26
- <span class="ruby-identifier">parsed</span> = <span class="ruby-identifier">parse</span>(<span class="ruby-identifier">source</span>, <span class="ruby-identifier">filename</span>)
27
- <span class="ruby-ivar">@commands</span> = <span class="ruby-identifier">compile</span>(<span class="ruby-identifier">parsed</span>, <span class="ruby-identifier">filename</span>)
28
- <span class="ruby-ivar">@lastFile</span> = <span class="ruby-identifier">filename</span>
29
- <span class="ruby-ivar">@mTime</span> = <span class="ruby-identifier">file</span>.<span class="ruby-identifier">mtime</span>
30
- <span class="ruby-keyword kw">end</span>
31
-
32
- <span class="ruby-keyword kw">return</span> <span class="ruby-value">1</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@commands</span>
33
- <span class="ruby-keyword kw">end</span></pre>
34
- </body>
35
- </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>output (Syntax::Parser)</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 508</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-ivar">@commands</span>.<span class="ruby-identifier">output</span>(<span class="ruby-identifier">namespace</span>)
16
- <span class="ruby-keyword kw">end</span></pre>
17
- </body>
18
- </html>
data/lib/MANIFEST DELETED
@@ -1,2 +0,0 @@
1
- MANIFEST
2
- PageTemplate.rb
Binary file