PageTemplate 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/MANIFEST +4 -0
- data/Rakefile +54 -0
- data/config.save +12 -0
- data/doc/classes/BlockCommand.html +229 -0
- data/doc/classes/BlockCommand.src/M000004.html +18 -0
- data/doc/classes/BlockCommand.src/M000005.html +25 -0
- data/doc/classes/BlockCommand.src/M000006.html +18 -0
- data/doc/classes/BlockCommand.src/M000007.html +23 -0
- data/doc/classes/BlockCommand.src/M000008.html +24 -0
- data/doc/classes/Command.html +167 -0
- data/doc/classes/Command.src/M000029.html +19 -0
- data/doc/classes/Command.src/M000030.html +18 -0
- data/doc/classes/IfCommand.html +193 -0
- data/doc/classes/IfCommand.src/M000039.html +19 -0
- data/doc/classes/IfCommand.src/M000040.html +20 -0
- data/doc/classes/IfCommand.src/M000041.html +20 -0
- data/doc/classes/IfElseCommand.html +189 -0
- data/doc/classes/IfElseCommand.src/M000023.html +19 -0
- data/doc/classes/IfElseCommand.src/M000024.html +23 -0
- data/doc/classes/IfElseCommand.src/M000025.html +20 -0
- data/doc/classes/IncludeCommand.html +178 -0
- data/doc/classes/IncludeCommand.src/M000017.html +21 -0
- data/doc/classes/IncludeCommand.src/M000018.html +23 -0
- data/doc/classes/IncludeCommand.src/M000019.html +18 -0
- data/doc/classes/LoopCommand.html +197 -0
- data/doc/classes/LoopCommand.src/M000001.html +19 -0
- data/doc/classes/LoopCommand.src/M000002.html +33 -0
- data/doc/classes/LoopCommand.src/M000003.html +20 -0
- data/doc/classes/LoopElseCommand.html +190 -0
- data/doc/classes/LoopElseCommand.src/M000020.html +19 -0
- data/doc/classes/LoopElseCommand.src/M000021.html +23 -0
- data/doc/classes/LoopElseCommand.src/M000022.html +20 -0
- data/doc/classes/Namespace.html +297 -0
- data/doc/classes/Namespace.src/M000031.html +19 -0
- data/doc/classes/Namespace.src/M000032.html +18 -0
- data/doc/classes/Namespace.src/M000033.html +18 -0
- data/doc/classes/Namespace.src/M000034.html +19 -0
- data/doc/classes/Namespace.src/M000035.html +36 -0
- data/doc/classes/Namespace.src/M000036.html +21 -0
- data/doc/classes/Namespace.src/M000037.html +18 -0
- data/doc/classes/Namespace.src/M000038.html +18 -0
- data/doc/classes/PageTemplate.html +352 -0
- data/doc/classes/PageTemplate.src/M000009.html +46 -0
- data/doc/classes/PageTemplate.src/M000010.html +29 -0
- data/doc/classes/PageTemplate.src/M000011.html +18 -0
- data/doc/classes/PageTemplate.src/M000012.html +18 -0
- data/doc/classes/PageTemplate.src/M000013.html +18 -0
- data/doc/classes/PageTemplate.src/M000014.html +18 -0
- data/doc/classes/PageTemplate.src/M000015.html +18 -0
- data/doc/classes/PageTemplate.src/M000016.html +19 -0
- data/doc/classes/Syntax.html +139 -0
- data/doc/classes/Syntax/CachedParser.html +163 -0
- data/doc/classes/Syntax/CachedParser.src/M000045.html +19 -0
- data/doc/classes/Syntax/CachedParser.src/M000046.html +52 -0
- data/doc/classes/Syntax/Glossary.html +245 -0
- data/doc/classes/Syntax/Glossary.src/M000047.html +20 -0
- data/doc/classes/Syntax/Glossary.src/M000048.html +29 -0
- data/doc/classes/Syntax/Parser.html +261 -0
- data/doc/classes/Syntax/Parser.src/M000049.html +22 -0
- data/doc/classes/Syntax/Parser.src/M000050.html +35 -0
- data/doc/classes/Syntax/Parser.src/M000051.html +18 -0
- data/doc/classes/Syntax/Parser.src/M000052.html +21 -0
- data/doc/classes/Syntax/Parser.src/M000053.html +53 -0
- data/doc/classes/Syntax/Parser.src/M000054.html +107 -0
- data/doc/classes/TextCommand.html +185 -0
- data/doc/classes/TextCommand.src/M000042.html +18 -0
- data/doc/classes/TextCommand.src/M000043.html +18 -0
- data/doc/classes/TextCommand.src/M000044.html +18 -0
- data/doc/classes/ValueCommand.html +186 -0
- data/doc/classes/ValueCommand.src/M000026.html +18 -0
- data/doc/classes/ValueCommand.src/M000027.html +18 -0
- data/doc/classes/ValueCommand.src/M000028.html +20 -0
- data/doc/created.rid +1 -0
- data/doc/files/README_txt.html +224 -0
- data/doc/files/lib/PageTemplate_rb.html +119 -0
- data/doc/fr_class_index.html +41 -0
- data/doc/fr_file_index.html +28 -0
- data/doc/fr_method_index.html +80 -0
- data/doc/index.html +24 -0
- data/doc/rdoc-style.css +208 -0
- data/install.rb +1015 -0
- data/lib/MANIFEST +2 -0
- data/lib/PageTemplate.rb +936 -0
- data/pkg/PageTemplate-1.1.2.gem +0 -0
- data/tdata/complex.txt +116 -0
- data/tdata/i1.txt +1 -0
- data/tdata/i2.txt +7 -0
- data/tdata/ib1.txt +7 -0
- data/tdata/ib2.txt +13 -0
- data/tdata/ie1.txt +4 -0
- data/tdata/ie2.txt +15 -0
- data/tdata/include.1.txt +1 -0
- data/tdata/include.2.txt +1 -0
- data/tdata/include.3.txt +1 -0
- data/tdata/include.4.out.txt +3 -0
- data/tdata/include.4.txt +2 -0
- data/tdata/include.4a.txt +1 -0
- data/tdata/include.4b.txt +2 -0
- data/tdata/include.5.txt +2 -0
- data/tdata/l1.txt +5 -0
- data/tdata/l2.txt +7 -0
- data/tdata/nm.txt +4 -0
- data/tdata/p/_b1.txt +0 -0
- data/tdata/p/b1.txt +4 -0
- data/tdata/p/cb1.txt +4 -0
- data/tdata/t.txt +2 -0
- data/tdata/v1.txt +11 -0
- data/tdata/v2.txt +11 -0
- data/test-install.rb +2 -0
- metadata +137 -4
@@ -0,0 +1,46 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html>
|
7
|
+
<head>
|
8
|
+
<title>new (PageTemplate)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/PageTemplate.rb, line 790</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">args</span> = {})
|
15
|
+
|
16
|
+
<span class="ruby-ivar">@source</span> = []
|
17
|
+
<span class="ruby-ivar">@params</span> = <span class="ruby-constant">Namespace</span>.<span class="ruby-identifier">new</span>()
|
18
|
+
|
19
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">args</span>[<span class="ruby-value str">'syntax'</span>]
|
20
|
+
<span class="ruby-ivar">@syntax</span> = <span class="ruby-identifier">args</span>[<span class="ruby-value str">'syntax'</span>]
|
21
|
+
<span class="ruby-keyword kw">else</span>
|
22
|
+
<span class="ruby-ivar">@syntax</span> = <span class="ruby-constant">Syntax</span><span class="ruby-operator">::</span><span class="ruby-constant">DEFAULT</span>
|
23
|
+
<span class="ruby-keyword kw">end</span>
|
24
|
+
|
25
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">args</span>[<span class="ruby-value str">'include_path'</span>]
|
26
|
+
<span class="ruby-ivar">@path</span> = <span class="ruby-identifier">args</span>[<span class="ruby-value str">'include_path'</span>]
|
27
|
+
<span class="ruby-keyword kw">else</span>
|
28
|
+
<span class="ruby-ivar">@path</span> = <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">getwd</span>()
|
29
|
+
<span class="ruby-keyword kw">end</span>
|
30
|
+
|
31
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">args</span>[<span class="ruby-value str">'use_cache'</span>]
|
32
|
+
<span class="ruby-ivar">@parser</span> = <span class="ruby-constant">Syntax</span><span class="ruby-operator">::</span><span class="ruby-constant">CachedParser</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@syntax</span>, <span class="ruby-ivar">@path</span>)
|
33
|
+
<span class="ruby-keyword kw">else</span>
|
34
|
+
<span class="ruby-ivar">@parser</span> = <span class="ruby-constant">Syntax</span><span class="ruby-operator">::</span><span class="ruby-constant">Parser</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@syntax</span>, <span class="ruby-ivar">@path</span>)
|
35
|
+
<span class="ruby-keyword kw">end</span>
|
36
|
+
|
37
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">args</span>[<span class="ruby-value str">'filename'</span>]
|
38
|
+
<span class="ruby-ivar">@file</span> = <span class="ruby-identifier">args</span>[<span class="ruby-value str">'filename'</span>]
|
39
|
+
<span class="ruby-identifier">load</span>(<span class="ruby-ivar">@file</span>)
|
40
|
+
<span class="ruby-keyword kw">else</span>
|
41
|
+
<span class="ruby-ivar">@file</span> = <span class="ruby-keyword kw">nil</span>
|
42
|
+
<span class="ruby-keyword kw">end</span>
|
43
|
+
|
44
|
+
<span class="ruby-keyword kw">end</span></pre>
|
45
|
+
</body>
|
46
|
+
</html>
|
@@ -0,0 +1,29 @@
|
|
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>load (PageTemplate)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/PageTemplate.rb, line 824</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">load</span>(<span class="ruby-identifier">file</span>)
|
15
|
+
<span class="ruby-identifier">clearFile</span>()
|
16
|
+
<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>) <span class="ruby-keyword kw">then</span>
|
17
|
+
<span class="ruby-ivar">@file</span> = <span class="ruby-identifier">file</span>
|
18
|
+
<span class="ruby-keyword kw">else</span>
|
19
|
+
<span class="ruby-identifier">filepath</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-ivar">@path</span>, <span class="ruby-identifier">file</span>)
|
20
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-identifier">filepath</span>) <span class="ruby-keyword kw">then</span>
|
21
|
+
<span class="ruby-ivar">@file</span> = <span class="ruby-identifier">filepath</span>
|
22
|
+
<span class="ruby-keyword kw">else</span>
|
23
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-node">"Cannot find #{file} in include path"</span>
|
24
|
+
<span class="ruby-keyword kw">end</span>
|
25
|
+
<span class="ruby-keyword kw">end</span>
|
26
|
+
<span class="ruby-ivar">@parser</span>.<span class="ruby-identifier">build</span>(<span class="ruby-ivar">@file</span>)
|
27
|
+
<span class="ruby-keyword kw">end</span></pre>
|
28
|
+
</body>
|
29
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
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>setParameter (PageTemplate)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/PageTemplate.rb, line 843</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setParameter</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">value</span>)
|
15
|
+
<span class="ruby-ivar">@params</span>.<span class="ruby-identifier">set</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">value</span>)
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
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>getParameter (PageTemplate)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/PageTemplate.rb, line 849</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">getParameter</span>(<span class="ruby-identifier">name</span>)
|
15
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@params</span>.<span class="ruby-identifier">get</span>(<span class="ruby-identifier">name</span>)
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
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>[]= (PageTemplate)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/PageTemplate.rb, line 854</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]=</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span>)
|
15
|
+
<span class="ruby-identifier">setParameter</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span>)
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
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>[] (PageTemplate)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/PageTemplate.rb, line 859</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">key</span>)
|
15
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">getParameter</span>(<span class="ruby-identifier">key</span>)
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,18 @@
|
|
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)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/PageTemplate.rb, line 870</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">output</span>
|
15
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@parser</span>.<span class="ruby-identifier">commands</span>.<span class="ruby-identifier">output</span>(<span class="ruby-ivar">@params</span>)
|
16
|
+
<span class="ruby-keyword kw">end</span></pre>
|
17
|
+
</body>
|
18
|
+
</html>
|
@@ -0,0 +1,19 @@
|
|
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>clearFile (PageTemplate)</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
+
</head>
|
12
|
+
<body class="standalone-code">
|
13
|
+
<pre><span class="ruby-comment cmt"># File lib/PageTemplate.rb, line 876</span>
|
14
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clearFile</span>
|
15
|
+
<span class="ruby-ivar">@file</span> = <span class="ruby-keyword kw">nil</span>
|
16
|
+
<span class="ruby-ivar">@parser</span>.<span class="ruby-identifier">reset</span>()
|
17
|
+
<span class="ruby-keyword kw">end</span></pre>
|
18
|
+
</body>
|
19
|
+
</html>
|
@@ -0,0 +1,139 @@
|
|
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>Module: Syntax</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>Module</strong></td>
|
53
|
+
<td class="class-name-in-header">Syntax</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
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
|
65
|
+
</table>
|
66
|
+
</div>
|
67
|
+
<!-- banner header -->
|
68
|
+
|
69
|
+
<div id="bodyContent">
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
<div id="contextContent">
|
74
|
+
|
75
|
+
<div id="description">
|
76
|
+
<p>
|
77
|
+
This module provides guidelines for the template parser.
|
78
|
+
</p>
|
79
|
+
|
80
|
+
</div>
|
81
|
+
|
82
|
+
|
83
|
+
</div>
|
84
|
+
|
85
|
+
|
86
|
+
</div>
|
87
|
+
|
88
|
+
|
89
|
+
<!-- if includes -->
|
90
|
+
|
91
|
+
<div id="section">
|
92
|
+
|
93
|
+
<div id="class-list">
|
94
|
+
<h3 class="section-bar">Classes and Modules</h3>
|
95
|
+
|
96
|
+
Class <a href="Syntax/CachedParser.html" class="link">Syntax::CachedParser</a><br />
|
97
|
+
Class <a href="Syntax/Glossary.html" class="link">Syntax::Glossary</a><br />
|
98
|
+
Class <a href="Syntax/Parser.html" class="link">Syntax::Parser</a><br />
|
99
|
+
|
100
|
+
</div>
|
101
|
+
|
102
|
+
<div id="constants-list">
|
103
|
+
<h3 class="section-bar">Constants</h3>
|
104
|
+
|
105
|
+
<div class="name-list">
|
106
|
+
<table summary="Constants">
|
107
|
+
<tr class="top-aligned-row context-row">
|
108
|
+
<td class="context-item-name">DEFAULT</td>
|
109
|
+
<td>=</td>
|
110
|
+
<td class="context-item-value">Syntax::Glossary.new( /\[%(.+?)%\]/, 'value' => /^\s*var (\w+)\s*$/, 'ifopen' => /^\s*if (\w+)\s*$/, 'ifclose' => /^\s*endif\s*$/, 'ifbranch' => /^\s*else\s*$/, 'loopopen' => /^\s*in (\w+)\s*$/, 'loopclose' => /^\s*endin\s*$/, 'loopbranch' => /^\s*no\s*$/, 'include' => /^\s*include (\S+)\s*$/</td>
|
111
|
+
<td width="3em"> </td>
|
112
|
+
<td class="context-item-desc">
|
113
|
+
Notice that I used a space before the closing braces. This <a
|
114
|
+
href="Syntax/Glossary.html">Glossary</a> doesn’t require it, but I
|
115
|
+
think it makes for a more readable style.
|
116
|
+
|
117
|
+
</td>
|
118
|
+
</tr>
|
119
|
+
</table>
|
120
|
+
</div>
|
121
|
+
</div>
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
<!-- if method_list -->
|
129
|
+
|
130
|
+
|
131
|
+
</div>
|
132
|
+
|
133
|
+
|
134
|
+
<div id="validator-badges">
|
135
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
136
|
+
</div>
|
137
|
+
|
138
|
+
</body>
|
139
|
+
</html>
|
@@ -0,0 +1,163 @@
|
|
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: Syntax::CachedParser</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">Syntax::CachedParser</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
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
|
65
|
+
<tr class="top-aligned-row">
|
66
|
+
<td><strong>Parent:</strong></td>
|
67
|
+
<td>
|
68
|
+
<a href="Parser.html">
|
69
|
+
Parser
|
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 <a href="Parser.html">Syntax::Parser</a> that can save its compiled
|
86
|
+
CommandBlock for reuse later.
|
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="#M000046">build</a>
|
99
|
+
<a href="#M000045">new</a>
|
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-M000045" class="method-detail">
|
122
|
+
<a name="M000045"></a>
|
123
|
+
|
124
|
+
<div class="method-heading">
|
125
|
+
<a href="CachedParser.src/M000045.html" target="Code" class="method-signature"
|
126
|
+
onclick="popupCode('CachedParser.src/M000045.html');return false;">
|
127
|
+
<span class="method-name">new</span><span class="method-args">(glossary, path=Dir.getwd)</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-M000046" class="method-detail">
|
138
|
+
<a name="M000046"></a>
|
139
|
+
|
140
|
+
<div class="method-heading">
|
141
|
+
<a href="CachedParser.src/M000046.html" target="Code" class="method-signature"
|
142
|
+
onclick="popupCode('CachedParser.src/M000046.html');return false;">
|
143
|
+
<span class="method-name">build</span><span class="method-args">(filename)</span>
|
144
|
+
</a>
|
145
|
+
</div>
|
146
|
+
|
147
|
+
<div class="method-description">
|
148
|
+
</div>
|
149
|
+
</div>
|
150
|
+
|
151
|
+
|
152
|
+
</div>
|
153
|
+
|
154
|
+
|
155
|
+
</div>
|
156
|
+
|
157
|
+
|
158
|
+
<div id="validator-badges">
|
159
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
160
|
+
</div>
|
161
|
+
|
162
|
+
</body>
|
163
|
+
</html>
|