PageTemplate 2.2.0 → 2.2.3

Sign up to get free protection for your applications and to get access to all the features.
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
data/Changes CHANGED
@@ -1,4 +1,9 @@
1
- Latest:
1
+ 2.2.3:
2
+ Bugfixes
3
+ - NameSpace#set accepted symbols, but Namespace#get would lose them.
4
+ Now symbol keys are fetched based on symbol.to_s
5
+ - Undefined iterators were triggering warnings with the -w flag
6
+ 2.2.0:
2
7
  Bugfixes:
3
8
  FileSource#get_filename couldn't consistently work with
4
9
  relative or absolute filenames on Windows.
data/README.txt CHANGED
@@ -56,7 +56,7 @@ Download the gem file from the
56
56
 
57
57
  Then, use the gem command to install it:
58
58
 
59
- $ sudo gem install -l PageTemplate-2.0.0.gem
59
+ $ sudo gem install -l PageTemplate-2.2.3.gem
60
60
 
61
61
  I think that's all there is to it. I'm new to gems, though, so let me
62
62
  know if I missed something.
@@ -73,7 +73,7 @@ http://coolnamehere.com/products/pagetemplate/
73
73
 
74
74
  The MIT License
75
75
 
76
- Copyright (c) 2002-2005 Brian Wisti, Greg Millam
76
+ Copyright (c) 2002-2006 Brian Wisti, Greg Millam
77
77
 
78
78
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
79
79
 
data/Rakefile CHANGED
@@ -80,3 +80,8 @@ task :gem do
80
80
  end
81
81
  sh %{rake pkg/PageTemplate-#{spec.version}.gem}
82
82
  end
83
+
84
+ task :export do
85
+ dirname = "PageTemplate-#{PageTemplate::VERSION}"
86
+ sh %{cvs export -D now -d #{dirname} PageTemplate}
87
+ end
@@ -29,7 +29,7 @@ require 'PageTemplate/commands'
29
29
  # It is a class so that programmers are not confused by being able to
30
30
  # do .new on a module
31
31
  class PageTemplate
32
- VERSION = "2.2.0"
32
+ VERSION = "2.2.3"
33
33
 
34
34
  # Passes arguments straight to Parser.new
35
35
  #
@@ -402,7 +402,12 @@ class PageTemplate
402
402
  def initialize(called_as, value, iterators)
403
403
  @called_as = called_as
404
404
  @value = value
405
- @iterators = iterators.strip.gsub(/\s+/,' ').split if iterators
405
+ if iterators
406
+ @iterators = iterators.strip.gsub(/\s+/, ' ').split
407
+ else
408
+ @iterators = nil
409
+ end
410
+
406
411
  @switched = false
407
412
  @commands = BlockCommand.new
408
413
  @elseCommands = BlockCommand.new
@@ -65,9 +65,14 @@ class PageTemplate
65
65
  value = case
66
66
  when @values.has_key?(key)
67
67
  @values[key]
68
+ when @values.has_key?(key.to_sym)
69
+ @values[key.to_sym]
68
70
  when !@object
69
- return @parent.get(val) if @parent
70
- return nil
71
+ if @parent
72
+ @parent.get(val)
73
+ else
74
+ nil
75
+ end
71
76
  when @object.respond_to?(:has_key?)
72
77
  if @object.has_key?(key)
73
78
  @values[key] = @object[key]
@@ -214,7 +219,7 @@ class PageTemplate
214
219
  # It attempts to be secure by not allowing any access outside of
215
220
  # The directories detailed within include_paths
216
221
  class FileSource < Source
217
- attr_reader :paths
222
+ attr_accessor :paths
218
223
 
219
224
  # initialize looks for the following in the args Hash:
220
225
  # * include_paths = a list of file paths
@@ -269,7 +274,9 @@ class PageTemplate
269
274
  @paths.each do |path|
270
275
  fn = File.join(path,file)
271
276
  fn.untaint
272
- return fn if File.exists?(fn)
277
+ if File.exists?(fn)
278
+ return fn
279
+ end
273
280
  end
274
281
  return nil
275
282
  end
data/test.rb CHANGED
@@ -188,6 +188,7 @@ module TestPageTemplate
188
188
  def test_get
189
189
  assert_equal(@@text, @@fs.get(@@filename),
190
190
  "Dir.getwd is a path by default")
191
+ puts "Looking for #{@@location}"
191
192
  assert_equal(@@text, @@fs.get(@@location),
192
193
  "Full path is allowed by default")
193
194
  end
@@ -345,6 +346,10 @@ module TestPageTemplate
345
346
  pt["name"] = "Phil"
346
347
  assert(pt.output =~ /Hello, Phil!/,
347
348
  "Included files are parsed as templates.")
349
+ pt.source.paths = [ Dir.getwd ]
350
+ pt.load("tdata/include.txt")
351
+ assert(pt.output =~ /variable.txt/,
352
+ "Filename for includes may include directories")
348
353
  end
349
354
 
350
355
  def test_include_literal
@@ -501,6 +506,9 @@ module TestPageTemplate
501
506
  @@ns.set('fruits',{'a'=>'apple','b'=>'banana'})
502
507
  assert_equal('banana',@@ns.get('fruits.b'),
503
508
  "If an object has_key?(b), it checks get object['b'] rather than send(:b)")
509
+ @@ns.set(:title, "xyz")
510
+ assert_equal("xyz", @@ns.get("title"),
511
+ "Symbols may be used as Namespace keys")
504
512
  end
505
513
 
506
514
  def test_index
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
3
3
  specification_version: 1
4
4
  name: PageTemplate
5
5
  version: !ruby/object:Gem::Version
6
- version: 2.2.0
7
- date: 2006-03-02 00:00:00 -08:00
6
+ version: 2.2.3
7
+ date: 2006-06-20 00:00:00 -07:00
8
8
  summary: A simple templating system for Web sites.
9
9
  require_paths:
10
10
  - lib
@@ -29,9 +29,9 @@ authors:
29
29
  - Brian Wisti
30
30
  files:
31
31
  - Changes
32
- - doc
33
32
  - lib
34
33
  - MANIFEST
34
+ - pkg
35
35
  - Rakefile
36
36
  - README.txt
37
37
  - setup-usage.txt
@@ -40,165 +40,13 @@ files:
40
40
  - tdata
41
41
  - test-install.rb
42
42
  - test.rb
43
- - doc/classes
44
- - doc/created.rid
45
- - doc/files
46
- - doc/fr_class_index.html
47
- - doc/fr_file_index.html
48
- - doc/fr_method_index.html
49
- - doc/index.html
50
- - doc/rdoc-style.css
51
- - doc/classes/PageTemplate
52
- - doc/classes/PageTemplate.html
53
- - doc/classes/PageTemplate.src
54
- - doc/classes/PageTemplate/BlockCommand.html
55
- - doc/classes/PageTemplate/BlockCommand.src
56
- - doc/classes/PageTemplate/CaseCommand.html
57
- - doc/classes/PageTemplate/CaseCommand.src
58
- - doc/classes/PageTemplate/Command.html
59
- - doc/classes/PageTemplate/Command.src
60
- - doc/classes/PageTemplate/CommentCommand.html
61
- - doc/classes/PageTemplate/CommentCommand.src
62
- - doc/classes/PageTemplate/DefaultGlossary.html
63
- - doc/classes/PageTemplate/DefaultPreprocessor.html
64
- - doc/classes/PageTemplate/DefaultPreprocessor.src
65
- - doc/classes/PageTemplate/DefineCommand.html
66
- - doc/classes/PageTemplate/DefineCommand.src
67
- - doc/classes/PageTemplate/FileSource.html
68
- - doc/classes/PageTemplate/FileSource.src
69
- - doc/classes/PageTemplate/FilterCommand.html
70
- - doc/classes/PageTemplate/FilterCommand.src
71
- - doc/classes/PageTemplate/HTGlossary.html
72
- - doc/classes/PageTemplate/IfCommand.html
73
- - doc/classes/PageTemplate/IfCommand.src
74
- - doc/classes/PageTemplate/IncludeCommand.html
75
- - doc/classes/PageTemplate/IncludeCommand.src
76
- - doc/classes/PageTemplate/LoopCommand.html
77
- - doc/classes/PageTemplate/LoopCommand.src
78
- - doc/classes/PageTemplate/Namespace.html
79
- - doc/classes/PageTemplate/Namespace.src
80
- - doc/classes/PageTemplate/NamespaceItem.html
81
- - doc/classes/PageTemplate/NamespaceItem.src
82
- - doc/classes/PageTemplate/Parser.html
83
- - doc/classes/PageTemplate/Parser.src
84
- - doc/classes/PageTemplate/Preprocessor.html
85
- - doc/classes/PageTemplate/Source.html
86
- - doc/classes/PageTemplate/Source.src
87
- - doc/classes/PageTemplate/StackableCommand.html
88
- - doc/classes/PageTemplate/StackableCommand.src
89
- - doc/classes/PageTemplate/StringSource.html
90
- - doc/classes/PageTemplate/StringSource.src
91
- - doc/classes/PageTemplate/SyntaxGlossary.html
92
- - doc/classes/PageTemplate/SyntaxGlossary.src
93
- - doc/classes/PageTemplate/Template.html
94
- - doc/classes/PageTemplate/Template.src
95
- - doc/classes/PageTemplate/TextCommand.html
96
- - doc/classes/PageTemplate/TextCommand.src
97
- - doc/classes/PageTemplate/UnknownCommand.html
98
- - doc/classes/PageTemplate/UnknownCommand.src
99
- - doc/classes/PageTemplate/ValueCommand.html
100
- - doc/classes/PageTemplate/ValueCommand.src
101
- - doc/classes/PageTemplate/BlockCommand.src/M000020.html
102
- - doc/classes/PageTemplate/BlockCommand.src/M000021.html
103
- - doc/classes/PageTemplate/BlockCommand.src/M000022.html
104
- - doc/classes/PageTemplate/BlockCommand.src/M000023.html
105
- - doc/classes/PageTemplate/BlockCommand.src/M000024.html
106
- - doc/classes/PageTemplate/CaseCommand.src/M000085.html
107
- - doc/classes/PageTemplate/CaseCommand.src/M000086.html
108
- - doc/classes/PageTemplate/CaseCommand.src/M000087.html
109
- - doc/classes/PageTemplate/CaseCommand.src/M000088.html
110
- - doc/classes/PageTemplate/CaseCommand.src/M000089.html
111
- - doc/classes/PageTemplate/CaseCommand.src/M000090.html
112
- - doc/classes/PageTemplate/Command.src/M000045.html
113
- - doc/classes/PageTemplate/Command.src/M000046.html
114
- - doc/classes/PageTemplate/CommentCommand.src/M000028.html
115
- - doc/classes/PageTemplate/CommentCommand.src/M000029.html
116
- - doc/classes/PageTemplate/CommentCommand.src/M000030.html
117
- - doc/classes/PageTemplate/DefaultPreprocessor.src/M000074.html
118
- - doc/classes/PageTemplate/DefaultPreprocessor.src/M000075.html
119
- - doc/classes/PageTemplate/DefaultPreprocessor.src/M000076.html
120
- - doc/classes/PageTemplate/DefaultPreprocessor.src/M000077.html
121
- - doc/classes/PageTemplate/DefaultPreprocessor.src/M000078.html
122
- - doc/classes/PageTemplate/DefineCommand.src/M000079.html
123
- - doc/classes/PageTemplate/DefineCommand.src/M000080.html
124
- - doc/classes/PageTemplate/FileSource.src/M000016.html
125
- - doc/classes/PageTemplate/FileSource.src/M000017.html
126
- - doc/classes/PageTemplate/FileSource.src/M000018.html
127
- - doc/classes/PageTemplate/FileSource.src/M000019.html
128
- - doc/classes/PageTemplate/FilterCommand.src/M000065.html
129
- - doc/classes/PageTemplate/FilterCommand.src/M000066.html
130
- - doc/classes/PageTemplate/FilterCommand.src/M000067.html
131
- - doc/classes/PageTemplate/IfCommand.src/M000059.html
132
- - doc/classes/PageTemplate/IfCommand.src/M000060.html
133
- - doc/classes/PageTemplate/IfCommand.src/M000061.html
134
- - doc/classes/PageTemplate/IfCommand.src/M000062.html
135
- - doc/classes/PageTemplate/IfCommand.src/M000063.html
136
- - doc/classes/PageTemplate/IfCommand.src/M000064.html
137
- - doc/classes/PageTemplate/IncludeCommand.src/M000039.html
138
- - doc/classes/PageTemplate/IncludeCommand.src/M000040.html
139
- - doc/classes/PageTemplate/IncludeCommand.src/M000041.html
140
- - doc/classes/PageTemplate/LoopCommand.src/M000011.html
141
- - doc/classes/PageTemplate/LoopCommand.src/M000012.html
142
- - doc/classes/PageTemplate/LoopCommand.src/M000013.html
143
- - doc/classes/PageTemplate/LoopCommand.src/M000014.html
144
- - doc/classes/PageTemplate/LoopCommand.src/M000015.html
145
- - doc/classes/PageTemplate/Namespace.src/M000057.html
146
- - doc/classes/PageTemplate/Namespace.src/M000058.html
147
- - doc/classes/PageTemplate/NamespaceItem.src/M000002.html
148
- - doc/classes/PageTemplate/NamespaceItem.src/M000004.html
149
- - doc/classes/PageTemplate/NamespaceItem.src/M000006.html
150
- - doc/classes/PageTemplate/NamespaceItem.src/M000008.html
151
- - doc/classes/PageTemplate/NamespaceItem.src/M000009.html
152
- - doc/classes/PageTemplate/NamespaceItem.src/M000010.html
153
- - doc/classes/PageTemplate/Parser.src/M000031.html
154
- - doc/classes/PageTemplate/Parser.src/M000032.html
155
- - doc/classes/PageTemplate/Parser.src/M000033.html
156
- - doc/classes/PageTemplate/Parser.src/M000034.html
157
- - doc/classes/PageTemplate/Parser.src/M000035.html
158
- - doc/classes/PageTemplate/Parser.src/M000036.html
159
- - doc/classes/PageTemplate/Parser.src/M000037.html
160
- - doc/classes/PageTemplate/Parser.src/M000038.html
161
- - doc/classes/PageTemplate/Source.src/M000055.html
162
- - doc/classes/PageTemplate/Source.src/M000056.html
163
- - doc/classes/PageTemplate/StackableCommand.src/M000081.html
164
- - doc/classes/PageTemplate/StackableCommand.src/M000082.html
165
- - doc/classes/PageTemplate/StackableCommand.src/M000083.html
166
- - doc/classes/PageTemplate/StackableCommand.src/M000084.html
167
- - doc/classes/PageTemplate/StringSource.src/M000053.html
168
- - doc/classes/PageTemplate/StringSource.src/M000054.html
169
- - doc/classes/PageTemplate/SyntaxGlossary.src/M000047.html
170
- - doc/classes/PageTemplate/SyntaxGlossary.src/M000048.html
171
- - doc/classes/PageTemplate/SyntaxGlossary.src/M000049.html
172
- - doc/classes/PageTemplate/SyntaxGlossary.src/M000050.html
173
- - doc/classes/PageTemplate/SyntaxGlossary.src/M000051.html
174
- - doc/classes/PageTemplate/SyntaxGlossary.src/M000052.html
175
- - doc/classes/PageTemplate/Template.src/M000071.html
176
- - doc/classes/PageTemplate/Template.src/M000072.html
177
- - doc/classes/PageTemplate/Template.src/M000073.html
178
- - doc/classes/PageTemplate/TextCommand.src/M000068.html
179
- - doc/classes/PageTemplate/TextCommand.src/M000069.html
180
- - doc/classes/PageTemplate/TextCommand.src/M000070.html
181
- - doc/classes/PageTemplate/UnknownCommand.src/M000025.html
182
- - doc/classes/PageTemplate/UnknownCommand.src/M000026.html
183
- - doc/classes/PageTemplate/UnknownCommand.src/M000027.html
184
- - doc/classes/PageTemplate/ValueCommand.src/M000042.html
185
- - doc/classes/PageTemplate/ValueCommand.src/M000043.html
186
- - doc/classes/PageTemplate/ValueCommand.src/M000044.html
187
- - doc/classes/PageTemplate.src/M000001.html
188
- - doc/files/lib
189
- - doc/files/README_txt.html
190
- - doc/files/lib/PageTemplate
191
- - doc/files/lib/PageTemplate_rb.html
192
- - doc/files/lib/PageTemplate/case_rb.html
193
- - doc/files/lib/PageTemplate/commands_rb.html
194
- - doc/files/lib/PageTemplate/htglossary_rb.html
195
- - doc/files/lib/PageTemplate/parser_rb.html
196
43
  - lib/PageTemplate
197
44
  - lib/PageTemplate.rb
198
45
  - lib/PageTemplate/case.rb
199
46
  - lib/PageTemplate/commands.rb
200
47
  - lib/PageTemplate/htglossary.rb
201
48
  - lib/PageTemplate/parser.rb
49
+ - pkg/PageTemplate-2.2.3.gem
202
50
  - site/base.css
203
51
  - site/footer.txt
204
52
  - site/header.txt
@@ -1,203 +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</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</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
- <a href="../files/lib/PageTemplate/case_rb.html">
63
- lib/PageTemplate/case.rb
64
- </a>
65
- <br />
66
- <a href="../files/lib/PageTemplate/commands_rb.html">
67
- lib/PageTemplate/commands.rb
68
- </a>
69
- <br />
70
- <a href="../files/lib/PageTemplate/htglossary_rb.html">
71
- lib/PageTemplate/htglossary.rb
72
- </a>
73
- <br />
74
- <a href="../files/lib/PageTemplate/parser_rb.html">
75
- lib/PageTemplate/parser.rb
76
- </a>
77
- <br />
78
- </td>
79
- </tr>
80
-
81
- <tr class="top-aligned-row">
82
- <td><strong>Parent:</strong></td>
83
- <td>
84
- Object
85
- </td>
86
- </tr>
87
- </table>
88
- </div>
89
- <!-- banner header -->
90
-
91
- <div id="bodyContent">
92
-
93
-
94
-
95
- <div id="contextContent">
96
-
97
-
98
-
99
- </div>
100
-
101
- <div id="method-list">
102
- <h3 class="section-bar">Methods</h3>
103
-
104
- <div class="name-list">
105
- <a href="#M000001">new</a>&nbsp;&nbsp;
106
- </div>
107
- </div>
108
-
109
- </div>
110
-
111
-
112
- <!-- if includes -->
113
-
114
- <div id="section">
115
-
116
- <div id="class-list">
117
- <h3 class="section-bar">Classes and Modules</h3>
118
-
119
- Module <a href="PageTemplate/NamespaceItem.html" class="link">PageTemplate::NamespaceItem</a><br />
120
- Class <a href="PageTemplate/BlockCommand.html" class="link">PageTemplate::BlockCommand</a><br />
121
- Class <a href="PageTemplate/CaseCommand.html" class="link">PageTemplate::CaseCommand</a><br />
122
- Class <a href="PageTemplate/Command.html" class="link">PageTemplate::Command</a><br />
123
- Class <a href="PageTemplate/CommentCommand.html" class="link">PageTemplate::CommentCommand</a><br />
124
- Class <a href="PageTemplate/DefaultGlossary.html" class="link">PageTemplate::DefaultGlossary</a><br />
125
- Class <a href="PageTemplate/DefaultPreprocessor.html" class="link">PageTemplate::DefaultPreprocessor</a><br />
126
- Class <a href="PageTemplate/DefineCommand.html" class="link">PageTemplate::DefineCommand</a><br />
127
- Class <a href="PageTemplate/FileSource.html" class="link">PageTemplate::FileSource</a><br />
128
- Class <a href="PageTemplate/FilterCommand.html" class="link">PageTemplate::FilterCommand</a><br />
129
- Class <a href="PageTemplate/HTGlossary.html" class="link">PageTemplate::HTGlossary</a><br />
130
- Class <a href="PageTemplate/IfCommand.html" class="link">PageTemplate::IfCommand</a><br />
131
- Class <a href="PageTemplate/IncludeCommand.html" class="link">PageTemplate::IncludeCommand</a><br />
132
- Class <a href="PageTemplate/LoopCommand.html" class="link">PageTemplate::LoopCommand</a><br />
133
- Class <a href="PageTemplate/Namespace.html" class="link">PageTemplate::Namespace</a><br />
134
- Class <a href="PageTemplate/Parser.html" class="link">PageTemplate::Parser</a><br />
135
- Class <a href="PageTemplate/Preprocessor.html" class="link">PageTemplate::Preprocessor</a><br />
136
- Class <a href="PageTemplate/Source.html" class="link">PageTemplate::Source</a><br />
137
- Class <a href="PageTemplate/StackableCommand.html" class="link">PageTemplate::StackableCommand</a><br />
138
- Class <a href="PageTemplate/StringSource.html" class="link">PageTemplate::StringSource</a><br />
139
- Class <a href="PageTemplate/SyntaxGlossary.html" class="link">PageTemplate::SyntaxGlossary</a><br />
140
- Class <a href="PageTemplate/Template.html" class="link">PageTemplate::Template</a><br />
141
- Class <a href="PageTemplate/TextCommand.html" class="link">PageTemplate::TextCommand</a><br />
142
- Class <a href="PageTemplate/UnknownCommand.html" class="link">PageTemplate::UnknownCommand</a><br />
143
- Class <a href="PageTemplate/ValueCommand.html" class="link">PageTemplate::ValueCommand</a><br />
144
-
145
- </div>
146
-
147
- <div id="constants-list">
148
- <h3 class="section-bar">Constants</h3>
149
-
150
- <div class="name-list">
151
- <table summary="Constants">
152
- <tr class="top-aligned-row context-row">
153
- <td class="context-item-name">VERSION</td>
154
- <td>=</td>
155
- <td class="context-item-value">&quot;2.2.0&quot;</td>
156
- </tr>
157
- </table>
158
- </div>
159
- </div>
160
-
161
-
162
-
163
-
164
-
165
-
166
- <!-- if method_list -->
167
- <div id="methods">
168
- <h3 class="section-bar">Public Class methods</h3>
169
-
170
- <div id="method-M000001" class="method-detail">
171
- <a name="M000001"></a>
172
-
173
- <div class="method-heading">
174
- <a href="PageTemplate.src/M000001.html" target="Code" class="method-signature"
175
- onclick="popupCode('PageTemplate.src/M000001.html');return false;">
176
- <span class="method-name">new</span><span class="method-args">(*args)</span>
177
- </a>
178
- </div>
179
-
180
- <div class="method-description">
181
- <p>
182
- Passes arguments straight to <a
183
- href="PageTemplate/Parser.html#M000032">Parser.new</a>
184
- </p>
185
- <p>
186
- returns: a <a href="PageTemplate/Parser.html">Parser</a> object.
187
- </p>
188
- </div>
189
- </div>
190
-
191
-
192
- </div>
193
-
194
-
195
- </div>
196
-
197
-
198
- <div id="validator-badges">
199
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
200
- </div>
201
-
202
- </body>
203
- </html>