PageTemplate 1.2.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Changes +24 -0
- data/MANIFEST +0 -1
- data/README.txt +10 -8
- data/Rakefile +30 -9
- data/lib/PageTemplate/case.rb +72 -0
- data/lib/PageTemplate/commands.rb +500 -0
- data/lib/PageTemplate/parser.rb +373 -0
- data/lib/PageTemplate.rb +47 -991
- data/setup-usage.txt +129 -0
- data/setup.rb +1360 -0
- data/tdata/dummy.txt +2 -0
- data/test.rb +616 -0
- metadata +13 -169
- data/CVS/Entries +0 -10
- data/CVS/Repository +0 -1
- data/CVS/Root +0 -1
- data/Changes~ +0 -7
- data/InstalledFiles +0 -7
- data/Rakefile~ +0 -54
- data/TC_PageTemplate.rb +0 -974
- data/TC_PageTemplate.rb~ +0 -965
- data/config.save +0 -12
- data/doc/classes/BlockCommand.html +0 -229
- data/doc/classes/BlockCommand.src/M000004.html +0 -18
- data/doc/classes/BlockCommand.src/M000005.html +0 -25
- data/doc/classes/BlockCommand.src/M000006.html +0 -18
- data/doc/classes/BlockCommand.src/M000007.html +0 -23
- data/doc/classes/BlockCommand.src/M000008.html +0 -24
- data/doc/classes/Command.html +0 -167
- data/doc/classes/Command.src/M000032.html +0 -19
- data/doc/classes/Command.src/M000033.html +0 -18
- data/doc/classes/CommentCommand.html +0 -146
- data/doc/classes/CommentCommand.src/M000009.html +0 -18
- data/doc/classes/IfCommand.html +0 -193
- data/doc/classes/IfCommand.src/M000042.html +0 -19
- data/doc/classes/IfCommand.src/M000043.html +0 -20
- data/doc/classes/IfCommand.src/M000044.html +0 -20
- data/doc/classes/IfElseCommand.html +0 -189
- data/doc/classes/IfElseCommand.src/M000025.html +0 -19
- data/doc/classes/IfElseCommand.src/M000026.html +0 -23
- data/doc/classes/IfElseCommand.src/M000027.html +0 -20
- data/doc/classes/IncludeCommand.html +0 -171
- data/doc/classes/IncludeCommand.src/M000019.html +0 -26
- data/doc/classes/IncludeCommand.src/M000020.html +0 -28
- data/doc/classes/IncludeCommand.src/M000021.html +0 -18
- data/doc/classes/IncludeCommandError.html +0 -118
- data/doc/classes/LoopCommand.html +0 -197
- data/doc/classes/LoopCommand.src/M000001.html +0 -19
- data/doc/classes/LoopCommand.src/M000002.html +0 -42
- data/doc/classes/LoopCommand.src/M000003.html +0 -20
- data/doc/classes/LoopElseCommand.html +0 -190
- data/doc/classes/LoopElseCommand.src/M000022.html +0 -19
- data/doc/classes/LoopElseCommand.src/M000023.html +0 -23
- data/doc/classes/LoopElseCommand.src/M000024.html +0 -20
- data/doc/classes/Namespace.html +0 -297
- data/doc/classes/Namespace.src/M000034.html +0 -19
- data/doc/classes/Namespace.src/M000035.html +0 -18
- data/doc/classes/Namespace.src/M000036.html +0 -18
- data/doc/classes/Namespace.src/M000037.html +0 -19
- data/doc/classes/Namespace.src/M000038.html +0 -36
- data/doc/classes/Namespace.src/M000039.html +0 -21
- data/doc/classes/Namespace.src/M000040.html +0 -18
- data/doc/classes/Namespace.src/M000041.html +0 -18
- data/doc/classes/PageTemplate.html +0 -380
- data/doc/classes/PageTemplate.src/M000010.html +0 -49
- data/doc/classes/PageTemplate.src/M000011.html +0 -18
- data/doc/classes/PageTemplate.src/M000012.html +0 -29
- data/doc/classes/PageTemplate.src/M000013.html +0 -18
- data/doc/classes/PageTemplate.src/M000014.html +0 -18
- data/doc/classes/PageTemplate.src/M000015.html +0 -18
- data/doc/classes/PageTemplate.src/M000016.html +0 -18
- data/doc/classes/PageTemplate.src/M000017.html +0 -18
- data/doc/classes/PageTemplate.src/M000018.html +0 -19
- data/doc/classes/Syntax/CachedParser.html +0 -163
- data/doc/classes/Syntax/CachedParser.src/M000048.html +0 -19
- data/doc/classes/Syntax/CachedParser.src/M000049.html +0 -53
- data/doc/classes/Syntax/Glossary.html +0 -251
- data/doc/classes/Syntax/Glossary.src/M000050.html +0 -20
- data/doc/classes/Syntax/Glossary.src/M000051.html +0 -29
- data/doc/classes/Syntax/Parser.html +0 -261
- data/doc/classes/Syntax/Parser.src/M000052.html +0 -22
- data/doc/classes/Syntax/Parser.src/M000053.html +0 -36
- data/doc/classes/Syntax/Parser.src/M000054.html +0 -18
- data/doc/classes/Syntax/Parser.src/M000055.html +0 -21
- data/doc/classes/Syntax/Parser.src/M000056.html +0 -53
- data/doc/classes/Syntax/Parser.src/M000057.html +0 -111
- data/doc/classes/Syntax.html +0 -139
- data/doc/classes/TextCommand.html +0 -185
- data/doc/classes/TextCommand.src/M000045.html +0 -18
- data/doc/classes/TextCommand.src/M000046.html +0 -18
- data/doc/classes/TextCommand.src/M000047.html +0 -18
- data/doc/classes/UnlessCommand.html +0 -151
- data/doc/classes/UnlessCommand.src/M000028.html +0 -20
- data/doc/classes/ValueCommand.html +0 -186
- data/doc/classes/ValueCommand.src/M000029.html +0 -18
- data/doc/classes/ValueCommand.src/M000030.html +0 -18
- data/doc/classes/ValueCommand.src/M000031.html +0 -20
- data/doc/created.rid +0 -1
- data/doc/files/README_txt.html +0 -224
- data/doc/files/lib/PageTemplate_rb.html +0 -119
- data/doc/fr_class_index.html +0 -44
- data/doc/fr_file_index.html +0 -28
- data/doc/fr_method_index.html +0 -83
- data/doc/index.html +0 -24
- data/doc/rdoc-style.css +0 -208
- data/install.rb +0 -1015
- data/lib/CVS/Entries +0 -2
- data/lib/CVS/Repository +0 -1
- data/lib/CVS/Root +0 -1
- data/lib/PageTemplate.rb~ +0 -1004
- data/pkg/PageTemplate-1.2.0.gem +0 -0
- data/tdata/CVS/Entries +0 -28
- data/tdata/CVS/Repository +0 -1
- data/tdata/CVS/Root +0 -1
- data/tdata/cm.txt +0 -3
- data/tdata/complex.txt +0 -116
- data/tdata/i1.txt +0 -1
- data/tdata/i2.txt +0 -7
- data/tdata/ib1.txt +0 -7
- data/tdata/ib2.txt +0 -13
- data/tdata/ie1.txt +0 -4
- data/tdata/ie2.txt +0 -15
- data/tdata/include.1.txt +0 -1
- data/tdata/include.2.txt +0 -1
- data/tdata/include.3.txt +0 -1
- data/tdata/include.4.nf.out.txt +0 -2
- data/tdata/include.4.out.txt +0 -3
- data/tdata/include.4.txt +0 -2
- data/tdata/include.4a.txt +0 -1
- data/tdata/include.4b.txt +0 -2
- data/tdata/include.5.txt +0 -2
- data/tdata/l1.txt +0 -5
- data/tdata/l2.txt +0 -7
- data/tdata/metadata.1.txt +0 -5
- data/tdata/metadata.2.txt +0 -5
- data/tdata/metadata.3.txt +0 -5
- data/tdata/metadata.4.txt +0 -5
- data/tdata/nm.txt +0 -4
- data/tdata/p/CVS/Entries +0 -5
- data/tdata/p/CVS/Repository +0 -1
- data/tdata/p/CVS/Root +0 -1
- data/tdata/p/CVS/b2.txt,t +0 -0
- data/tdata/p/_b1.txt +0 -0
- data/tdata/p/b1.txt +0 -4
- data/tdata/p/b2.txt +0 -4
- data/tdata/p/b2.txt~ +0 -4
- data/tdata/p/cb1.txt +0 -4
- data/tdata/t.txt +0 -2
- data/tdata/v1.txt +0 -11
- data/tdata/v2.txt +0 -11
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.8.
|
2
|
+
rubygems_version: 0.8.8
|
3
3
|
specification_version: 1
|
4
4
|
name: PageTemplate
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version:
|
7
|
-
date: 2005-
|
6
|
+
version: 2.0.0
|
7
|
+
date: 2005-04-13
|
8
8
|
summary: A simple templating system for Web sites.
|
9
9
|
require_paths:
|
10
10
|
- lib
|
11
|
-
email:
|
11
|
+
email: brianwisti@rubyforge.org
|
12
12
|
homepage: http://coolnamehere.com/products/pagetemplate
|
13
13
|
rubyforge_project:
|
14
14
|
description:
|
@@ -28,179 +28,23 @@ authors:
|
|
28
28
|
- Brian Wisti
|
29
29
|
files:
|
30
30
|
- README.txt
|
31
|
-
-
|
32
|
-
- TC_PageTemplate.rb~
|
31
|
+
- setup.rb
|
33
32
|
- MANIFEST
|
34
|
-
- install.rb
|
35
33
|
- lib
|
36
|
-
- doc
|
37
|
-
- config.save
|
38
|
-
- CVS
|
39
34
|
- Changes
|
35
|
+
- setup-usage.txt
|
40
36
|
- test-install.rb
|
41
37
|
- Rakefile
|
42
|
-
- InstalledFiles
|
43
38
|
- tdata
|
44
|
-
-
|
45
|
-
- Rakefile~
|
46
|
-
- pkg
|
39
|
+
- test.rb
|
47
40
|
- lib/PageTemplate.rb
|
48
|
-
- lib/PageTemplate
|
49
|
-
- lib/
|
50
|
-
- lib/
|
51
|
-
- lib/
|
52
|
-
-
|
53
|
-
- doc/fr_class_index.html
|
54
|
-
- doc/index.html
|
55
|
-
- doc/fr_file_index.html
|
56
|
-
- doc/rdoc-style.css
|
57
|
-
- doc/created.rid
|
58
|
-
- doc/classes
|
59
|
-
- doc/files
|
60
|
-
- doc/fr_method_index.html
|
61
|
-
- doc/classes/LoopCommand.html
|
62
|
-
- doc/classes/LoopCommand.src
|
63
|
-
- doc/classes/UnlessCommand.src
|
64
|
-
- doc/classes/Syntax
|
65
|
-
- doc/classes/LoopElseCommand.src
|
66
|
-
- doc/classes/UnlessCommand.html
|
67
|
-
- doc/classes/LoopElseCommand.html
|
68
|
-
- doc/classes/IfCommand.src
|
69
|
-
- doc/classes/ValueCommand.src
|
70
|
-
- doc/classes/IfElseCommand.html
|
71
|
-
- doc/classes/ValueCommand.html
|
72
|
-
- doc/classes/IncludeCommand.html
|
73
|
-
- doc/classes/Namespace.html
|
74
|
-
- doc/classes/Command.html
|
75
|
-
- doc/classes/BlockCommand.html
|
76
|
-
- doc/classes/IncludeCommandError.html
|
77
|
-
- doc/classes/Command.src
|
78
|
-
- doc/classes/PageTemplate.src
|
79
|
-
- doc/classes/BlockCommand.src
|
80
|
-
- doc/classes/TextCommand.html
|
81
|
-
- doc/classes/CommentCommand.src
|
82
|
-
- doc/classes/TextCommand.src
|
83
|
-
- doc/classes/CommentCommand.html
|
84
|
-
- doc/classes/Syntax.html
|
85
|
-
- doc/classes/IfCommand.html
|
86
|
-
- doc/classes/IfElseCommand.src
|
87
|
-
- doc/classes/IncludeCommand.src
|
88
|
-
- doc/classes/Namespace.src
|
89
|
-
- doc/classes/PageTemplate.html
|
90
|
-
- doc/classes/LoopCommand.src/M000002.html
|
91
|
-
- doc/classes/LoopCommand.src/M000003.html
|
92
|
-
- doc/classes/LoopCommand.src/M000001.html
|
93
|
-
- doc/classes/UnlessCommand.src/M000028.html
|
94
|
-
- doc/classes/Syntax/CachedParser.src
|
95
|
-
- doc/classes/Syntax/Parser.html
|
96
|
-
- doc/classes/Syntax/Glossary.html
|
97
|
-
- doc/classes/Syntax/CachedParser.html
|
98
|
-
- doc/classes/Syntax/Parser.src
|
99
|
-
- doc/classes/Syntax/Glossary.src
|
100
|
-
- doc/classes/Syntax/CachedParser.src/M000048.html
|
101
|
-
- doc/classes/Syntax/CachedParser.src/M000049.html
|
102
|
-
- doc/classes/Syntax/Parser.src/M000052.html
|
103
|
-
- doc/classes/Syntax/Parser.src/M000054.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
|
107
|
-
- doc/classes/Syntax/Parser.src/M000053.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
|
112
|
-
- doc/classes/LoopElseCommand.src/M000022.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
|
121
|
-
- doc/classes/PageTemplate.src/M000013.html
|
122
|
-
- doc/classes/PageTemplate.src/M000014.html
|
123
|
-
- doc/classes/PageTemplate.src/M000018.html
|
124
|
-
- doc/classes/PageTemplate.src/M000010.html
|
125
|
-
- doc/classes/PageTemplate.src/M000015.html
|
126
|
-
- doc/classes/PageTemplate.src/M000012.html
|
127
|
-
- doc/classes/PageTemplate.src/M000017.html
|
128
|
-
- doc/classes/PageTemplate.src/M000016.html
|
129
|
-
- doc/classes/PageTemplate.src/M000011.html
|
130
|
-
- doc/classes/BlockCommand.src/M000007.html
|
131
|
-
- doc/classes/BlockCommand.src/M000005.html
|
132
|
-
- doc/classes/BlockCommand.src/M000006.html
|
133
|
-
- doc/classes/BlockCommand.src/M000004.html
|
134
|
-
- doc/classes/BlockCommand.src/M000008.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
|
139
|
-
- doc/classes/IfElseCommand.src/M000025.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
|
144
|
-
- doc/classes/IncludeCommand.src/M000019.html
|
145
|
-
- doc/classes/Namespace.src/M000036.html
|
146
|
-
- doc/classes/Namespace.src/M000041.html
|
147
|
-
- doc/classes/Namespace.src/M000035.html
|
148
|
-
- doc/classes/Namespace.src/M000039.html
|
149
|
-
- doc/classes/Namespace.src/M000037.html
|
150
|
-
- doc/classes/Namespace.src/M000040.html
|
151
|
-
- doc/classes/Namespace.src/M000034.html
|
152
|
-
- doc/classes/Namespace.src/M000038.html
|
153
|
-
- doc/files/lib
|
154
|
-
- doc/files/README_txt.html
|
155
|
-
- doc/files/lib/PageTemplate_rb.html
|
156
|
-
- CVS/Repository
|
157
|
-
- CVS/Root
|
158
|
-
- CVS/Entries
|
159
|
-
- tdata/include.3.txt
|
160
|
-
- tdata/include.2.txt
|
161
|
-
- tdata/ib2.txt
|
162
|
-
- tdata/include.4b.txt
|
163
|
-
- tdata/cm.txt
|
164
|
-
- tdata/t.txt
|
165
|
-
- tdata/p
|
166
|
-
- tdata/v2.txt
|
167
|
-
- tdata/l2.txt
|
168
|
-
- tdata/metadata.2.txt
|
169
|
-
- tdata/ib1.txt
|
170
|
-
- tdata/v1.txt
|
171
|
-
- tdata/complex.txt
|
172
|
-
- tdata/metadata.1.txt
|
173
|
-
- tdata/i2.txt
|
174
|
-
- tdata/CVS
|
175
|
-
- tdata/include.4.out.txt
|
176
|
-
- tdata/nm.txt
|
177
|
-
- tdata/include.4.nf.out.txt
|
178
|
-
- tdata/metadata.3.txt
|
179
|
-
- tdata/include.4a.txt
|
180
|
-
- tdata/ie1.txt
|
181
|
-
- tdata/metadata.4.txt
|
182
|
-
- tdata/include.4.txt
|
183
|
-
- tdata/l1.txt
|
184
|
-
- tdata/include.5.txt
|
185
|
-
- tdata/i1.txt
|
186
|
-
- tdata/ie2.txt
|
187
|
-
- tdata/include.1.txt
|
188
|
-
- tdata/p/b1.txt
|
189
|
-
- tdata/p/b2.txt~
|
190
|
-
- tdata/p/CVS
|
191
|
-
- tdata/p/b2.txt
|
192
|
-
- tdata/p/cb1.txt
|
193
|
-
- tdata/p/_b1.txt
|
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
|
41
|
+
- lib/PageTemplate
|
42
|
+
- lib/PageTemplate/parser.rb
|
43
|
+
- lib/PageTemplate/case.rb
|
44
|
+
- lib/PageTemplate/commands.rb
|
45
|
+
- tdata/dummy.txt
|
202
46
|
test_files:
|
203
|
-
-
|
47
|
+
- test.rb
|
204
48
|
rdoc_options: []
|
205
49
|
extra_rdoc_files:
|
206
50
|
- README.txt
|
data/CVS/Entries
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
/MANIFEST/1.1.1.1/Wed Mar 9 01:30:10 2005//
|
2
|
-
/config.save/1.1.1.1/Wed Mar 9 01:30:10 2005//
|
3
|
-
/install.rb/1.1.1.1/Wed Mar 9 01:30:10 2005//
|
4
|
-
/test-install.rb/1.1.1.1/Wed Mar 9 01:30:10 2005//
|
5
|
-
D/lib////
|
6
|
-
D/tdata////
|
7
|
-
/Changes/1.1/Fri Mar 11 08:56:02 2005//
|
8
|
-
/README.txt/1.2/Fri Mar 11 01:48:29 2005//
|
9
|
-
/Rakefile/1.2/Fri Mar 11 09:01:10 2005//
|
10
|
-
/TC_PageTemplate.rb/1.12/Fri Mar 11 19:04:51 2005//
|
data/CVS/Repository
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
PageTemplate
|
data/CVS/Root
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
/home/wisti/CVS
|
data/Changes~
DELETED
data/InstalledFiles
DELETED
data/Rakefile~
DELETED
@@ -1,54 +0,0 @@
|
|
1
|
-
# -*- ruby -*-
|
2
|
-
|
3
|
-
require 'rubygems'
|
4
|
-
Gem::manage_gems
|
5
|
-
require 'rake/gempackagetask'
|
6
|
-
|
7
|
-
task :default => [:all, :test]
|
8
|
-
|
9
|
-
task :all do
|
10
|
-
ruby %{-c lib/PageTemplate.rb}
|
11
|
-
ruby %{-c TC_PageTemplate.rb}
|
12
|
-
end
|
13
|
-
|
14
|
-
task :test do
|
15
|
-
ruby %{-w TC_PageTemplate.rb}
|
16
|
-
end
|
17
|
-
|
18
|
-
task :install do
|
19
|
-
ruby %{install.rb config}
|
20
|
-
ruby %{install.rb setup}
|
21
|
-
ruby %{install.rb install}
|
22
|
-
end
|
23
|
-
|
24
|
-
task :doc do
|
25
|
-
sh %{rdoc lib/PageTemplate.rb README.txt}
|
26
|
-
end
|
27
|
-
|
28
|
-
task :cnh_doc do
|
29
|
-
sh %{cp -R --remove-destination doc /home/wisti/Sites/coolnamehere/extras/doc/PageTemplate}
|
30
|
-
end
|
31
|
-
|
32
|
-
spec = Gem::Specification.new do |s|
|
33
|
-
s.name = "PageTemplate"
|
34
|
-
s.version = "1.1.2"
|
35
|
-
s.author = "Brian Wisti"
|
36
|
-
s.email = "brian@coolnamehere.com"
|
37
|
-
s.homepage = "http://coolnamehere.com/products/pagetemplate"
|
38
|
-
s.platform = Gem::Platform::RUBY
|
39
|
-
s.summary = "A simple templating system for Web sites."
|
40
|
-
s.files = Dir.glob("**/*")
|
41
|
-
s.require_path = "lib"
|
42
|
-
s.autorequire = "PageTemplate.rb"
|
43
|
-
s.test_file = "TC_PageTemplate.rb"
|
44
|
-
s.has_rdoc = true
|
45
|
-
s.extra_rdoc_files = ["README.txt"]
|
46
|
-
end
|
47
|
-
|
48
|
-
Rake::GemPackageTask.new(spec) do |pkg|
|
49
|
-
pkg.need_tar = true
|
50
|
-
end
|
51
|
-
|
52
|
-
task :gem do
|
53
|
-
sh %{rake pkg/PageTemplate-#{spec.version}.gem}
|
54
|
-
end
|