source: extensions/gsdl-video/trunk/installed/cmdline/lib/ruby/1.8/rdoc/generators/template/html/one_page_html.rb@ 18425

Last change on this file since 18425 was 18425, checked in by davidb, 15 years ago

Video extension to Greenstone

File size: 1.9 KB
Line 
1module RDoc
2module Page
3######################################################################
4#
5# The following is used for the -1 option
6#
7
8CONTENTS_XML = %{
9IF:description
10%description%
11ENDIF:description
12
13IF:requires
14<h4>Requires:</h4>
15<ul>
16START:requires
17IF:aref
18<li><a href="%aref%">%name%</a></li>
19ENDIF:aref
20IFNOT:aref
21<li>%name%</li>
22ENDIF:aref
23END:requires
24</ul>
25ENDIF:requires
26
27IF:attributes
28<h4>Attributes</h4>
29<table>
30START:attributes
31<tr><td>%name%</td><td>%rw%</td><td>%a_desc%</td></tr>
32END:attributes
33</table>
34ENDIF:attributes
35
36IF:includes
37<h4>Includes</h4>
38<ul>
39START:includes
40IF:aref
41<li><a href="%aref%">%name%</a></li>
42ENDIF:aref
43IFNOT:aref
44<li>%name%</li>
45ENDIF:aref
46END:includes
47</ul>
48ENDIF:includes
49
50IF:method_list
51<h3>Methods</h3>
52START:method_list
53IF:methods
54START:methods
55<h4>%type% %category% method:
56IF:callseq
57<a name="%aref%">%callseq%</a>
58ENDIF:callseq
59IFNOT:callseq
60<a name="%aref%">%name%%params%</a></h4>
61ENDIF:callseq
62
63IF:m_desc
64%m_desc%
65ENDIF:m_desc
66
67IF:sourcecode
68<blockquote><pre>
69%sourcecode%
70</pre></blockquote>
71ENDIF:sourcecode
72END:methods
73ENDIF:methods
74END:method_list
75ENDIF:method_list
76}
77
78########################################################################
79
80ONE_PAGE = %{
81<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
82<html>
83<head>
84 <title>%title%</title>
85 <meta http-equiv="Content-Type" content="text/html; charset=%charset%" />
86</head>
87<body>
88START:files
89<h2>File: %short_name%</h2>
90<table>
91 <tr><td>Path:</td><td>%full_path%</td></tr>
92 <tr><td>Modified:</td><td>%dtm_modified%</td></tr>
93</table>
94} + CONTENTS_XML + %{
95END:files
96
97IF:classes
98<h2>Classes</h2>
99START:classes
100IF:parent
101<h3>%classmod% %full_name% &lt; HREF:par_url:parent:</h3>
102ENDIF:parent
103IFNOT:parent
104<h3>%classmod% %full_name%</h3>
105ENDIF:parent
106
107IF:infiles
108(in files
109START:infiles
110HREF:full_path_url:full_path:
111END:infiles
112)
113ENDIF:infiles
114} + CONTENTS_XML + %{
115END:classes
116ENDIF:classes
117</body>
118</html>
119}
120
121end
122end
Note: See TracBrowser for help on using the repository browser.