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
@@ -1,20 +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>escapeURI (PageTemplate::DefaultPreprocessor)</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/parser.rb, line 461</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">escapeURI</span>(<span class="ruby-identifier">string</span>)
15
- <span class="ruby-identifier">string</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/([^ a-zA-Z0-9_.-]+)/n</span>) <span class="ruby-keyword kw">do</span>
16
- <span class="ruby-value str">'%'</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">$1</span>.<span class="ruby-identifier">unpack</span>(<span class="ruby-value str">'H2'</span> <span class="ruby-operator">*</span> <span class="ruby-identifier">$1</span>.<span class="ruby-identifier">size</span>).<span class="ruby-identifier">join</span>(<span class="ruby-value str">'%'</span>).<span class="ruby-identifier">upcase</span>
17
- <span class="ruby-keyword kw">end</span>.<span class="ruby-identifier">tr</span>(<span class="ruby-value str">' '</span>, <span class="ruby-value str">'+'</span>)
18
- <span class="ruby-keyword kw">end</span></pre>
19
- </body>
20
- </html>
@@ -1,22 +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>escapeHTML (PageTemplate::DefaultPreprocessor)</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/parser.rb, line 467</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">escapeHTML</span>(<span class="ruby-identifier">string</span>)
15
- <span class="ruby-identifier">str</span> = <span class="ruby-identifier">string</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/&amp;/n</span>, <span class="ruby-value str">'&amp;amp;'</span>)
16
- <span class="ruby-identifier">str</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/\&quot;/n</span>, <span class="ruby-value str">'&amp;quot;'</span>)
17
- <span class="ruby-identifier">str</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/&gt;/n</span>, <span class="ruby-value str">'&amp;gt;'</span>)
18
- <span class="ruby-identifier">str</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/&lt;/n</span>, <span class="ruby-value str">'&amp;lt;'</span>)
19
- <span class="ruby-identifier">str</span>
20
- <span class="ruby-keyword kw">end</span></pre>
21
- </body>
22
- </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>simple (PageTemplate::DefaultPreprocessor)</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/parser.rb, line 475</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">simple</span>(<span class="ruby-identifier">str</span>)
15
- <span class="ruby-identifier">escapeHTML</span>(<span class="ruby-identifier">str</span>).<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/\r\n|\n/</span>,<span class="ruby-value str">&quot;&lt;br /&gt;\n&quot;</span>)
16
- <span class="ruby-keyword kw">end</span></pre>
17
- </body>
18
- </html>
@@ -1,166 +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::DefineCommand</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::DefineCommand</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="DefineCommand.html">DefineCommand</a> will set a variable within
86
- the enclosing namespace
87
- </p>
88
-
89
- </div>
90
-
91
-
92
- </div>
93
-
94
- <div id="method-list">
95
- <h3 class="section-bar">Methods</h3>
96
-
97
- <div class="name-list">
98
- <a href="#M000079">new</a>&nbsp;&nbsp;
99
- <a href="#M000080">output</a>&nbsp;&nbsp;
100
- </div>
101
- </div>
102
-
103
- </div>
104
-
105
-
106
- <!-- if includes -->
107
-
108
- <div id="section">
109
-
110
-
111
-
112
-
113
-
114
-
115
-
116
-
117
- <!-- if method_list -->
118
- <div id="methods">
119
- <h3 class="section-bar">Public Class methods</h3>
120
-
121
- <div id="method-M000079" class="method-detail">
122
- <a name="M000079"></a>
123
-
124
- <div class="method-heading">
125
- <a href="DefineCommand.src/M000079.html" target="Code" class="method-signature"
126
- onclick="popupCode('DefineCommand.src/M000079.html');return false;">
127
- <span class="method-name">new</span><span class="method-args">(name, value)</span>
128
- </a>
129
- </div>
130
-
131
- <div class="method-description">
132
- </div>
133
- </div>
134
-
135
- <h3 class="section-bar">Public Instance methods</h3>
136
-
137
- <div id="method-M000080" class="method-detail">
138
- <a name="M000080"></a>
139
-
140
- <div class="method-heading">
141
- <a href="DefineCommand.src/M000080.html" target="Code" class="method-signature"
142
- onclick="popupCode('DefineCommand.src/M000080.html');return false;">
143
- <span class="method-name">output</span><span class="method-args">(namespace)</span>
144
- </a>
145
- </div>
146
-
147
- <div class="method-description">
148
- <p>
149
- Doesn&#8216;t return any output
150
- </p>
151
- </div>
152
- </div>
153
-
154
-
155
- </div>
156
-
157
-
158
- </div>
159
-
160
-
161
- <div id="validator-badges">
162
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
163
- </div>
164
-
165
- </body>
166
- </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::DefineCommand)</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 214</span>
14
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">value</span>)
15
- <span class="ruby-ivar">@name</span> = <span class="ruby-identifier">name</span>
16
- <span class="ruby-ivar">@value</span> = <span class="ruby-identifier">value</span>
17
- <span class="ruby-keyword kw">end</span></pre>
18
- </body>
19
- </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>output (PageTemplate::DefineCommand)</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 220</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">namespace</span>[<span class="ruby-ivar">@name</span>] = <span class="ruby-ivar">@value</span>
16
- <span class="ruby-keyword kw">return</span>
17
- <span class="ruby-keyword kw">end</span></pre>
18
- </body>
19
- </html>
@@ -1,222 +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::FileSource</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::FileSource</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../files/lib/PageTemplate/parser_rb.html">
59
- lib/PageTemplate/parser.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="Source.html">
69
- Source
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="FileSource.html">FileSource</a> provides access to files within
86
- the &#8216;include_paths&#8217; argument.
87
- </p>
88
- <p>
89
- It attempts to be secure by not allowing any access outside of The
90
- directories detailed within include_paths
91
- </p>
92
-
93
- </div>
94
-
95
-
96
- </div>
97
-
98
- <div id="method-list">
99
- <h3 class="section-bar">Methods</h3>
100
-
101
- <div class="name-list">
102
- <a href="#M000018">cache</a>&nbsp;&nbsp;
103
- <a href="#M000017">get</a>&nbsp;&nbsp;
104
- <a href="#M000019">get_filename</a>&nbsp;&nbsp;
105
- <a href="#M000016">new</a>&nbsp;&nbsp;
106
- </div>
107
- </div>
108
-
109
- </div>
110
-
111
-
112
- <!-- if includes -->
113
-
114
- <div id="section">
115
-
116
-
117
-
118
-
119
-
120
- <div id="attribute-list">
121
- <h3 class="section-bar">Attributes</h3>
122
-
123
- <div class="name-list">
124
- <table>
125
- <tr class="top-aligned-row context-row">
126
- <td class="context-item-name">paths</td>
127
- <td class="context-item-value">&nbsp;[R]&nbsp;</td>
128
- <td class="context-item-desc"></td>
129
- </tr>
130
- </table>
131
- </div>
132
- </div>
133
-
134
-
135
-
136
- <!-- if method_list -->
137
- <div id="methods">
138
- <h3 class="section-bar">Public Class methods</h3>
139
-
140
- <div id="method-M000016" class="method-detail">
141
- <a name="M000016"></a>
142
-
143
- <div class="method-heading">
144
- <a href="FileSource.src/M000016.html" target="Code" class="method-signature"
145
- onclick="popupCode('FileSource.src/M000016.html');return false;">
146
- <span class="method-name">new</span><span class="method-args">(args = {})</span>
147
- </a>
148
- </div>
149
-
150
- <div class="method-description">
151
- <p>
152
- initialize looks for the following in the args Hash:
153
- </p>
154
- <pre>
155
- * include_paths = a list of file paths
156
- * include_path = a single file path string
157
- (kept for backwards compatibility)
158
- </pre>
159
- </div>
160
- </div>
161
-
162
- <h3 class="section-bar">Public Instance methods</h3>
163
-
164
- <div id="method-M000018" class="method-detail">
165
- <a name="M000018"></a>
166
-
167
- <div class="method-heading">
168
- <a href="FileSource.src/M000018.html" target="Code" class="method-signature"
169
- onclick="popupCode('FileSource.src/M000018.html');return false;">
170
- <span class="method-name">cache</span><span class="method-args">(name,cmds)</span>
171
- </a>
172
- </div>
173
-
174
- <div class="method-description">
175
- </div>
176
- </div>
177
-
178
- <div id="method-M000017" class="method-detail">
179
- <a name="M000017"></a>
180
-
181
- <div class="method-heading">
182
- <a href="FileSource.src/M000017.html" target="Code" class="method-signature"
183
- onclick="popupCode('FileSource.src/M000017.html');return false;">
184
- <span class="method-name">get</span><span class="method-args">(name)</span>
185
- </a>
186
- </div>
187
-
188
- <div class="method-description">
189
- <p>
190
- Return the contents of the file <tt>name</tt>, which must be within the
191
- include_paths.
192
- </p>
193
- </div>
194
- </div>
195
-
196
- <div id="method-M000019" class="method-detail">
197
- <a name="M000019"></a>
198
-
199
- <div class="method-heading">
200
- <a href="FileSource.src/M000019.html" target="Code" class="method-signature"
201
- onclick="popupCode('FileSource.src/M000019.html');return false;">
202
- <span class="method-name">get_filename</span><span class="method-args">(file)</span>
203
- </a>
204
- </div>
205
-
206
- <div class="method-description">
207
- </div>
208
- </div>
209
-
210
-
211
- </div>
212
-
213
-
214
- </div>
215
-
216
-
217
- <div id="validator-badges">
218
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
219
- </div>
220
-
221
- </body>
222
- </html>