PageTemplate 2.2.0 → 2.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Changes +6 -1
- data/README.txt +2 -2
- data/Rakefile +5 -0
- data/lib/PageTemplate.rb +1 -1
- data/lib/PageTemplate/commands.rb +6 -1
- data/lib/PageTemplate/parser.rb +11 -4
- data/pkg/PageTemplate-2.2.3.gem +0 -0
- data/test.rb +8 -0
- metadata +4 -156
- data/doc/classes/PageTemplate.html +0 -203
- data/doc/classes/PageTemplate.src/M000001.html +0 -18
- data/doc/classes/PageTemplate/BlockCommand.html +0 -230
- data/doc/classes/PageTemplate/BlockCommand.src/M000020.html +0 -18
- data/doc/classes/PageTemplate/BlockCommand.src/M000021.html +0 -18
- data/doc/classes/PageTemplate/BlockCommand.src/M000022.html +0 -18
- data/doc/classes/PageTemplate/BlockCommand.src/M000023.html +0 -21
- data/doc/classes/PageTemplate/BlockCommand.src/M000024.html +0 -18
- data/doc/classes/PageTemplate/CaseCommand.html +0 -252
- data/doc/classes/PageTemplate/CaseCommand.src/M000085.html +0 -22
- data/doc/classes/PageTemplate/CaseCommand.src/M000086.html +0 -22
- data/doc/classes/PageTemplate/CaseCommand.src/M000087.html +0 -19
- data/doc/classes/PageTemplate/CaseCommand.src/M000088.html +0 -19
- data/doc/classes/PageTemplate/CaseCommand.src/M000089.html +0 -23
- data/doc/classes/PageTemplate/CaseCommand.src/M000090.html +0 -23
- data/doc/classes/PageTemplate/Command.html +0 -199
- data/doc/classes/PageTemplate/Command.src/M000045.html +0 -19
- data/doc/classes/PageTemplate/Command.src/M000046.html +0 -18
- data/doc/classes/PageTemplate/CommentCommand.html +0 -187
- data/doc/classes/PageTemplate/CommentCommand.src/M000028.html +0 -18
- data/doc/classes/PageTemplate/CommentCommand.src/M000029.html +0 -18
- data/doc/classes/PageTemplate/CommentCommand.src/M000030.html +0 -18
- data/doc/classes/PageTemplate/DefaultGlossary.html +0 -121
- data/doc/classes/PageTemplate/DefaultPreprocessor.html +0 -232
- data/doc/classes/PageTemplate/DefaultPreprocessor.src/M000074.html +0 -18
- data/doc/classes/PageTemplate/DefaultPreprocessor.src/M000075.html +0 -18
- data/doc/classes/PageTemplate/DefaultPreprocessor.src/M000076.html +0 -20
- data/doc/classes/PageTemplate/DefaultPreprocessor.src/M000077.html +0 -22
- data/doc/classes/PageTemplate/DefaultPreprocessor.src/M000078.html +0 -18
- data/doc/classes/PageTemplate/DefineCommand.html +0 -166
- data/doc/classes/PageTemplate/DefineCommand.src/M000079.html +0 -19
- data/doc/classes/PageTemplate/DefineCommand.src/M000080.html +0 -19
- data/doc/classes/PageTemplate/FileSource.html +0 -222
- data/doc/classes/PageTemplate/FileSource.src/M000016.html +0 -28
- data/doc/classes/PageTemplate/FileSource.src/M000017.html +0 -32
- data/doc/classes/PageTemplate/FileSource.src/M000018.html +0 -20
- data/doc/classes/PageTemplate/FileSource.src/M000019.html +0 -30
- data/doc/classes/PageTemplate/FilterCommand.html +0 -181
- data/doc/classes/PageTemplate/FilterCommand.src/M000065.html +0 -20
- data/doc/classes/PageTemplate/FilterCommand.src/M000066.html +0 -18
- data/doc/classes/PageTemplate/FilterCommand.src/M000067.html +0 -29
- data/doc/classes/PageTemplate/HTGlossary.html +0 -113
- data/doc/classes/PageTemplate/IfCommand.html +0 -261
- data/doc/classes/PageTemplate/IfCommand.src/M000059.html +0 -24
- data/doc/classes/PageTemplate/IfCommand.src/M000060.html +0 -22
- data/doc/classes/PageTemplate/IfCommand.src/M000061.html +0 -19
- data/doc/classes/PageTemplate/IfCommand.src/M000062.html +0 -20
- data/doc/classes/PageTemplate/IfCommand.src/M000063.html +0 -22
- data/doc/classes/PageTemplate/IfCommand.src/M000064.html +0 -36
- data/doc/classes/PageTemplate/IncludeCommand.html +0 -203
- data/doc/classes/PageTemplate/IncludeCommand.src/M000039.html +0 -18
- data/doc/classes/PageTemplate/IncludeCommand.src/M000040.html +0 -18
- data/doc/classes/PageTemplate/IncludeCommand.src/M000041.html +0 -35
- data/doc/classes/PageTemplate/LoopCommand.html +0 -260
- data/doc/classes/PageTemplate/LoopCommand.src/M000011.html +0 -24
- data/doc/classes/PageTemplate/LoopCommand.src/M000012.html +0 -20
- data/doc/classes/PageTemplate/LoopCommand.src/M000013.html +0 -22
- data/doc/classes/PageTemplate/LoopCommand.src/M000014.html +0 -77
- data/doc/classes/PageTemplate/LoopCommand.src/M000015.html +0 -21
- data/doc/classes/PageTemplate/Namespace.html +0 -163
- data/doc/classes/PageTemplate/Namespace.src/M000057.html +0 -20
- data/doc/classes/PageTemplate/Namespace.src/M000058.html +0 -22
- data/doc/classes/PageTemplate/NamespaceItem.html +0 -333
- data/doc/classes/PageTemplate/NamespaceItem.src/M000002.html +0 -18
- data/doc/classes/PageTemplate/NamespaceItem.src/M000004.html +0 -19
- data/doc/classes/PageTemplate/NamespaceItem.src/M000006.html +0 -84
- data/doc/classes/PageTemplate/NamespaceItem.src/M000008.html +0 -18
- data/doc/classes/PageTemplate/NamespaceItem.src/M000009.html +0 -22
- data/doc/classes/PageTemplate/NamespaceItem.src/M000010.html +0 -31
- data/doc/classes/PageTemplate/Parser.html +0 -369
- data/doc/classes/PageTemplate/Parser.src/M000031.html +0 -18
- data/doc/classes/PageTemplate/Parser.src/M000032.html +0 -32
- data/doc/classes/PageTemplate/Parser.src/M000033.html +0 -18
- data/doc/classes/PageTemplate/Parser.src/M000034.html +0 -30
- data/doc/classes/PageTemplate/Parser.src/M000035.html +0 -66
- data/doc/classes/PageTemplate/Parser.src/M000036.html +0 -18
- data/doc/classes/PageTemplate/Parser.src/M000037.html +0 -18
- data/doc/classes/PageTemplate/Parser.src/M000038.html +0 -19
- data/doc/classes/PageTemplate/Preprocessor.html +0 -123
- data/doc/classes/PageTemplate/Source.html +0 -165
- data/doc/classes/PageTemplate/Source.src/M000055.html +0 -18
- data/doc/classes/PageTemplate/Source.src/M000056.html +0 -18
- data/doc/classes/PageTemplate/StackableCommand.html +0 -205
- data/doc/classes/PageTemplate/StackableCommand.src/M000081.html +0 -17
- data/doc/classes/PageTemplate/StackableCommand.src/M000082.html +0 -18
- data/doc/classes/PageTemplate/StackableCommand.src/M000083.html +0 -18
- data/doc/classes/PageTemplate/StackableCommand.src/M000084.html +0 -18
- data/doc/classes/PageTemplate/StringSource.html +0 -163
- data/doc/classes/PageTemplate/StringSource.src/M000053.html +0 -23
- data/doc/classes/PageTemplate/StringSource.src/M000054.html +0 -18
- data/doc/classes/PageTemplate/SyntaxGlossary.html +0 -263
- data/doc/classes/PageTemplate/SyntaxGlossary.src/M000047.html +0 -22
- data/doc/classes/PageTemplate/SyntaxGlossary.src/M000048.html +0 -24
- data/doc/classes/PageTemplate/SyntaxGlossary.src/M000049.html +0 -18
- data/doc/classes/PageTemplate/SyntaxGlossary.src/M000050.html +0 -21
- data/doc/classes/PageTemplate/SyntaxGlossary.src/M000051.html +0 -21
- data/doc/classes/PageTemplate/SyntaxGlossary.src/M000052.html +0 -22
- data/doc/classes/PageTemplate/Template.html +0 -208
- data/doc/classes/PageTemplate/Template.src/M000071.html +0 -19
- data/doc/classes/PageTemplate/Template.src/M000072.html +0 -18
- data/doc/classes/PageTemplate/Template.src/M000073.html +0 -29
- data/doc/classes/PageTemplate/TextCommand.html +0 -185
- data/doc/classes/PageTemplate/TextCommand.src/M000068.html +0 -18
- data/doc/classes/PageTemplate/TextCommand.src/M000069.html +0 -18
- data/doc/classes/PageTemplate/TextCommand.src/M000070.html +0 -18
- data/doc/classes/PageTemplate/UnknownCommand.html +0 -191
- data/doc/classes/PageTemplate/UnknownCommand.src/M000025.html +0 -24
- data/doc/classes/PageTemplate/UnknownCommand.src/M000026.html +0 -18
- data/doc/classes/PageTemplate/UnknownCommand.src/M000027.html +0 -18
- data/doc/classes/PageTemplate/ValueCommand.html +0 -206
- data/doc/classes/PageTemplate/ValueCommand.src/M000042.html +0 -19
- data/doc/classes/PageTemplate/ValueCommand.src/M000043.html +0 -27
- data/doc/classes/PageTemplate/ValueCommand.src/M000044.html +0 -21
- data/doc/created.rid +0 -1
- data/doc/files/README_txt.html +0 -225
- data/doc/files/lib/PageTemplate/case_rb.html +0 -115
- data/doc/files/lib/PageTemplate/commands_rb.html +0 -111
- data/doc/files/lib/PageTemplate/htglossary_rb.html +0 -110
- data/doc/files/lib/PageTemplate/parser_rb.html +0 -111
- data/doc/files/lib/PageTemplate_rb.html +0 -139
- data/doc/fr_class_index.html +0 -52
- data/doc/fr_file_index.html +0 -32
- data/doc/fr_method_index.html +0 -116
- data/doc/index.html +0 -24
- data/doc/rdoc-style.css +0 -208
@@ -1,28 +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::FileSource)</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 223</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">args</span> = {})
|
15
|
-
<span class="ruby-ivar">@args</span> = <span class="ruby-identifier">args</span>
|
16
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@args</span>[<span class="ruby-value str">'include_paths'</span>]
|
17
|
-
<span class="ruby-ivar">@paths</span> = <span class="ruby-ivar">@args</span>[<span class="ruby-value str">'include_paths'</span>]
|
18
|
-
<span class="ruby-keyword kw">elsif</span> <span class="ruby-ivar">@args</span>[<span class="ruby-value str">'include_path'</span>]
|
19
|
-
<span class="ruby-ivar">@paths</span> = [ <span class="ruby-ivar">@args</span>[<span class="ruby-value str">'include_path'</span>] ]
|
20
|
-
<span class="ruby-keyword kw">else</span>
|
21
|
-
<span class="ruby-ivar">@paths</span> = [<span class="ruby-constant">Dir</span>.<span class="ruby-identifier">getwd</span>,<span class="ruby-value str">'/'</span>]
|
22
|
-
<span class="ruby-keyword kw">end</span>
|
23
|
-
<span class="ruby-ivar">@paths</span> = <span class="ruby-ivar">@paths</span>.<span class="ruby-identifier">compact</span>
|
24
|
-
<span class="ruby-ivar">@cache</span> = <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">nil</span>)
|
25
|
-
<span class="ruby-ivar">@mtime</span> = <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">0</span>)
|
26
|
-
<span class="ruby-keyword kw">end</span></pre>
|
27
|
-
</body>
|
28
|
-
</html>
|
@@ -1,32 +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>get (PageTemplate::FileSource)</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 239</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get</span>(<span class="ruby-identifier">name</span>)
|
15
|
-
<span class="ruby-identifier">fn</span> = <span class="ruby-identifier">get_filename</span>(<span class="ruby-identifier">name</span>)
|
16
|
-
<span class="ruby-keyword kw">begin</span>
|
17
|
-
<span class="ruby-keyword kw">case</span>
|
18
|
-
<span class="ruby-keyword kw">when</span> <span class="ruby-identifier">fn</span>.<span class="ruby-identifier">nil?</span>
|
19
|
-
<span class="ruby-keyword kw">nil</span>
|
20
|
-
<span class="ruby-keyword kw">when</span> <span class="ruby-ivar">@cache</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">fn</span>) <span class="ruby-operator">&&</span> (<span class="ruby-ivar">@mtime</span>[<span class="ruby-identifier">fn</span>] <span class="ruby-operator">></span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">mtime</span>(<span class="ruby-identifier">fn</span>).<span class="ruby-identifier">to_i</span>)
|
21
|
-
<span class="ruby-identifier">cmds</span> = <span class="ruby-ivar">@cache</span>[<span class="ruby-identifier">fn</span>]
|
22
|
-
<span class="ruby-identifier">cmds</span>.<span class="ruby-identifier">clear_cache</span>
|
23
|
-
<span class="ruby-identifier">cmds</span>
|
24
|
-
<span class="ruby-keyword kw">else</span>
|
25
|
-
<span class="ruby-constant">IO</span>.<span class="ruby-identifier">read</span>(<span class="ruby-identifier">fn</span>)
|
26
|
-
<span class="ruby-keyword kw">end</span>
|
27
|
-
<span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Exception</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">er</span>
|
28
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-node">"[ Unable to open file #{fn} because of #{er.message} ]"</span>
|
29
|
-
<span class="ruby-keyword kw">end</span>
|
30
|
-
<span class="ruby-keyword kw">end</span></pre>
|
31
|
-
</body>
|
32
|
-
</html>
|
@@ -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>cache (PageTemplate::FileSource)</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 256</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cache</span>(<span class="ruby-identifier">name</span>,<span class="ruby-identifier">cmds</span>)
|
15
|
-
<span class="ruby-identifier">fn</span> = <span class="ruby-identifier">get_filename</span>(<span class="ruby-identifier">name</span>)
|
16
|
-
<span class="ruby-ivar">@cache</span>[<span class="ruby-identifier">fn</span>] = <span class="ruby-identifier">cmds</span>.<span class="ruby-identifier">dup</span>
|
17
|
-
<span class="ruby-ivar">@mtime</span>[<span class="ruby-identifier">fn</span>] = <span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>.<span class="ruby-identifier">to_i</span>
|
18
|
-
<span class="ruby-keyword kw">end</span></pre>
|
19
|
-
</body>
|
20
|
-
</html>
|
@@ -1,30 +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>get_filename (PageTemplate::FileSource)</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 261</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_filename</span>(<span class="ruby-identifier">file</span>)
|
15
|
-
<span class="ruby-comment cmt"># Check for absolute filepaths</span>
|
16
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">file</span> <span class="ruby-operator">==</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-identifier">file</span>)
|
17
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-identifier">file</span>)
|
18
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">file</span>
|
19
|
-
<span class="ruby-keyword kw">end</span>
|
20
|
-
<span class="ruby-keyword kw">end</span>
|
21
|
-
<span class="ruby-identifier">file</span> = <span class="ruby-identifier">file</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/\.\.\//</span>,<span class="ruby-value str">''</span>)
|
22
|
-
<span class="ruby-ivar">@paths</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">path</span><span class="ruby-operator">|</span>
|
23
|
-
<span class="ruby-identifier">fn</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">path</span>,<span class="ruby-identifier">file</span>)
|
24
|
-
<span class="ruby-identifier">fn</span>.<span class="ruby-identifier">untaint</span>
|
25
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">fn</span> <span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-identifier">fn</span>)
|
26
|
-
<span class="ruby-keyword kw">end</span>
|
27
|
-
<span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">nil</span>
|
28
|
-
<span class="ruby-keyword kw">end</span></pre>
|
29
|
-
</body>
|
30
|
-
</html>
|
@@ -1,181 +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::FilterCommand</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::FilterCommand</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="StackableCommand.html">
|
69
|
-
StackableCommand
|
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="FilterCommand.html">FilterCommand</a> filters its block through a
|
86
|
-
preprocessor
|
87
|
-
</p>
|
88
|
-
<pre>
|
89
|
-
[% filter :processor %]text[% end %]
|
90
|
-
</pre>
|
91
|
-
|
92
|
-
</div>
|
93
|
-
|
94
|
-
|
95
|
-
</div>
|
96
|
-
|
97
|
-
<div id="method-list">
|
98
|
-
<h3 class="section-bar">Methods</h3>
|
99
|
-
|
100
|
-
<div class="name-list">
|
101
|
-
<a href="#M000066">add</a>
|
102
|
-
<a href="#M000065">new</a>
|
103
|
-
<a href="#M000067">output</a>
|
104
|
-
</div>
|
105
|
-
</div>
|
106
|
-
|
107
|
-
</div>
|
108
|
-
|
109
|
-
|
110
|
-
<!-- if includes -->
|
111
|
-
|
112
|
-
<div id="section">
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
<!-- if method_list -->
|
122
|
-
<div id="methods">
|
123
|
-
<h3 class="section-bar">Public Class methods</h3>
|
124
|
-
|
125
|
-
<div id="method-M000065" class="method-detail">
|
126
|
-
<a name="M000065"></a>
|
127
|
-
|
128
|
-
<div class="method-heading">
|
129
|
-
<a href="FilterCommand.src/M000065.html" target="Code" class="method-signature"
|
130
|
-
onclick="popupCode('FilterCommand.src/M000065.html');return false;">
|
131
|
-
<span class="method-name">new</span><span class="method-args">(filter)</span>
|
132
|
-
</a>
|
133
|
-
</div>
|
134
|
-
|
135
|
-
<div class="method-description">
|
136
|
-
</div>
|
137
|
-
</div>
|
138
|
-
|
139
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
140
|
-
|
141
|
-
<div id="method-M000066" class="method-detail">
|
142
|
-
<a name="M000066"></a>
|
143
|
-
|
144
|
-
<div class="method-heading">
|
145
|
-
<a href="FilterCommand.src/M000066.html" target="Code" class="method-signature"
|
146
|
-
onclick="popupCode('FilterCommand.src/M000066.html');return false;">
|
147
|
-
<span class="method-name">add</span><span class="method-args">(line)</span>
|
148
|
-
</a>
|
149
|
-
</div>
|
150
|
-
|
151
|
-
<div class="method-description">
|
152
|
-
</div>
|
153
|
-
</div>
|
154
|
-
|
155
|
-
<div id="method-M000067" class="method-detail">
|
156
|
-
<a name="M000067"></a>
|
157
|
-
|
158
|
-
<div class="method-heading">
|
159
|
-
<a href="FilterCommand.src/M000067.html" target="Code" class="method-signature"
|
160
|
-
onclick="popupCode('FilterCommand.src/M000067.html');return false;">
|
161
|
-
<span class="method-name">output</span><span class="method-args">(namespace=nil)</span>
|
162
|
-
</a>
|
163
|
-
</div>
|
164
|
-
|
165
|
-
<div class="method-description">
|
166
|
-
</div>
|
167
|
-
</div>
|
168
|
-
|
169
|
-
|
170
|
-
</div>
|
171
|
-
|
172
|
-
|
173
|
-
</div>
|
174
|
-
|
175
|
-
|
176
|
-
<div id="validator-badges">
|
177
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
178
|
-
</div>
|
179
|
-
|
180
|
-
</body>
|
181
|
-
</html>
|
@@ -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>new (PageTemplate::FilterCommand)</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 230</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">filter</span>)
|
15
|
-
<span class="ruby-ivar">@called_as</span> = <span class="ruby-value str">"filter"</span>
|
16
|
-
<span class="ruby-ivar">@processor</span> = <span class="ruby-identifier">filter</span>
|
17
|
-
<span class="ruby-ivar">@text</span> = []
|
18
|
-
<span class="ruby-keyword kw">end</span></pre>
|
19
|
-
</body>
|
20
|
-
</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>add (PageTemplate::FilterCommand)</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 236</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add</span>(<span class="ruby-identifier">line</span>)
|
15
|
-
<span class="ruby-ivar">@text</span>.<span class="ruby-identifier">push</span>(<span class="ruby-identifier">line</span>)
|
16
|
-
<span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,29 +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::FilterCommand)</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 240</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">output</span>(<span class="ruby-identifier">namespace</span>=<span class="ruby-keyword kw">nil</span>)
|
15
|
-
<span class="ruby-identifier">parser</span> = <span class="ruby-identifier">namespace</span>.<span class="ruby-identifier">parser</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">namespace</span>
|
16
|
-
<span class="ruby-identifier">parser</span> = <span class="ruby-constant">Parser</span>.<span class="ruby-identifier">recent_parser</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">parser</span>
|
17
|
-
<span class="ruby-identifier">namespace</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">parser</span>
|
18
|
-
<span class="ruby-identifier">preprocessor</span> = <span class="ruby-identifier">parser</span>.<span class="ruby-identifier">preprocessor</span>
|
19
|
-
<span class="ruby-identifier">processor</span> = <span class="ruby-ivar">@processor</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">parser</span>.<span class="ruby-identifier">default_processor</span>
|
20
|
-
<span class="ruby-identifier">text</span> = <span class="ruby-value str">""</span>
|
21
|
-
<span class="ruby-ivar">@text</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span> <span class="ruby-identifier">text</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">output</span>(<span class="ruby-identifier">namespace</span>) }
|
22
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">preprocessor</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">processor</span>)
|
23
|
-
<span class="ruby-identifier">preprocessor</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">processor</span>, <span class="ruby-identifier">text</span>)
|
24
|
-
<span class="ruby-keyword kw">else</span>
|
25
|
-
<span class="ruby-node">"[ ValueCommand: unknown preprocessor #{@processor} ]"</span>
|
26
|
-
<span class="ruby-keyword kw">end</span>
|
27
|
-
<span class="ruby-keyword kw">end</span></pre>
|
28
|
-
</body>
|
29
|
-
</html>
|
@@ -1,113 +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::HTGlossary</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::HTGlossary</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../files/lib/PageTemplate/htglossary_rb.html">
|
59
|
-
lib/PageTemplate/htglossary.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="SyntaxGlossary.html">
|
69
|
-
SyntaxGlossary
|
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
|
-
|
84
|
-
|
85
|
-
</div>
|
86
|
-
|
87
|
-
|
88
|
-
</div>
|
89
|
-
|
90
|
-
|
91
|
-
<!-- if includes -->
|
92
|
-
|
93
|
-
<div id="section">
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
<!-- if method_list -->
|
103
|
-
|
104
|
-
|
105
|
-
</div>
|
106
|
-
|
107
|
-
|
108
|
-
<div id="validator-badges">
|
109
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
110
|
-
</div>
|
111
|
-
|
112
|
-
</body>
|
113
|
-
</html>
|