1 require 'rdoc/generator/html'
2 require 'rdoc/generator/html/common'
4 module RDoc::Generator::HTML::ONE_PAGE_HTML
6 include RDoc::Generator::HTML::Common
9 <% if defined? classes and classes["description"] then %>
10 <%= classes["description"] %>
13 <% if defined? files and files["requires"] then %>
16 <% files["requires"].each do |requires| %>
17 <% if requires["aref"] then %>
18 <li><a href="<%= requires["aref"] %>"><%= requires["name"] %></a></li>
20 <% unless requires["aref"] then %>
21 <li><%= requires["name"] %></li>
23 <% end %><%# files["requires"] %>
27 <% if defined? classes and classes["includes"] then %>
30 <% classes["includes"].each do |includes| %>
31 <% if includes["aref"] then %>
32 <li><a href="<%= includes["aref"] %>"><%= includes["name"] %></a></li>
34 <% unless includes["aref"] then %>
35 <li><%= includes["name"] %></li>
37 <% end %><%# classes["includes"] %>
41 <% if defined? classes and classes["sections"] then %>
42 <% classes["sections"].each do |sections| %>
43 <% if sections["attributes"] then %>
46 <% sections["attributes"].each do |attributes| %>
47 <tr><td><%= attributes["name"] %></td><td><%= attributes["rw"] %></td><td><%= attributes["a_desc"] %></td></tr>
48 <% end %><%# sections["attributes"] %>
52 <% if sections["method_list"] then %>
54 <% sections["method_list"].each do |method_list| %>
55 <% if method_list["methods"] then %>
56 <% method_list["methods"].each do |methods| %>
57 <h4><%= methods["type"] %> <%= methods["category"] %> method:
58 <% if methods["callseq"] then %>
59 <a name="<%= methods["aref"] %>"><%= methods["callseq"] %></a>
61 <% unless methods["callseq"] then %>
62 <a name="<%= methods["aref"] %>"><%= methods["name"] %><%= methods["params"] %></a></h4>
65 <% if methods["m_desc"] then %>
66 <%= methods["m_desc"] %>
69 <% if methods["sourcecode"] then %>
71 <%= methods["sourcecode"] %>
74 <% end %><%# method_list["methods"] %>
76 <% end %><%# sections["method_list"] %>
78 <% end %><%# classes["sections"] %>
82 ONE_PAGE = XHTML_STRICT_PREAMBLE + HTML_ELEMENT + %{
84 <title><%= values["title"] %></title>
85 <meta http-equiv="Content-Type" content="text/html; charset=<%= values["charset"] %>" />
88 <% values["files"].each do |files| %>
89 <h2>File: <a name="<%= files["href"] %>"><%= files["short_name"] %></a></h2>
91 <tr><td>Path:</td><td><%= files["full_path"] %></td></tr>
92 <tr><td>Modified:</td><td><%= files["dtm_modified"] %></td></tr>
95 <% end %><%# values["files"] %>
97 <% if values["classes"] then %>
99 <% values["classes"].each do |classes| %>
100 <% if classes["parent"] then %>
101 <h3><%= classes["classmod"] %> <a name="<%= classes["href"] %>"><%= classes["full_name"] %></a> < <%= href classes["par_url"], classes["parent"] %></h3>
103 <% unless classes["parent"] then %>
104 <h3><%= classes["classmod"] %> <%= classes["full_name"] %></h3>
107 <% if classes["infiles"] then %>
109 <% classes["infiles"].each do |infiles| %>
110 <%= href infiles["full_path_url"], infiles["full_path"] %>
111 <% end %><%# classes["infiles"] %>
114 } + CONTENTS_XML + %{
115 <% end %><%# values["classes"] %>