module RDoc::Page
CONTENTS_XML = %{
<% if defined? classes and classes["description"] then %>
<%= classes["description"] %>
<% end %>
<% if defined? files and files["requires"] then %>
Requires:
<% files["requires"].each do |requires| %>
<% if requires["aref"] then %>
- "><%= requires["name"] %>
<% end %>
<% unless requires["aref"] then %>
- <%= requires["name"] %>
<% end %>
<% end # files["requires"] %>
<% end %>
<% if defined? classes and classes["includes"] then %>
Includes
<% classes["includes"].each do |includes| %>
<% if includes["aref"] then %>
- "><%= includes["name"] %>
<% end %>
<% unless includes["aref"] then %>
- <%= includes["name"] %>
<% end %>
<% end # classes["includes"] %>
<% end %>
<% if defined? classes and classes["sections"] then %>
<% classes["sections"].each do |sections| %>
<% if sections["attributes"] then %>
Attributes
<% sections["attributes"].each do |attributes| %>
<%= attributes["name"] %> | <%= attributes["rw"] %> | <%= attributes["a_desc"] %> |
<% end # sections["attributes"] %>
<% end %>
<% if sections["method_list"] then %>
Methods
<% sections["method_list"].each do |method_list| %>
<% if method_list["methods"] then %>
<% method_list["methods"].each do |methods| %>
<% end %>
<% if methods["m_desc"] then %>
<%= methods["m_desc"] %>
<% end %>
<% if methods["sourcecode"] then %>
<%= methods["sourcecode"] %>
<% end %>
<% end # method_list["methods"] %>
<% end %>
<% end # sections["method_list"] %>
<% end %>
<% end # classes["sections"] %>
<% end %>
}
########################################################################
ONE_PAGE = %{
<%= values["title"] %>
" />
<% values["files"].each do |files| %>
File: <%= files["short_name"] %>
Path: | <%= files["full_path"] %> |
Modified: | <%= files["dtm_modified"] %> |
} + CONTENTS_XML + %{
<% end # values["files"] %>
<% if values["classes"] then %>
Classes
<% values["classes"].each do |classes| %>
<% if classes["parent"] then %>
<%= classes["classmod"] %> <%= classes["full_name"] %> < <%= href classes["par_url"], classes["parent"] %>
<% end %>
<% unless classes["parent"] then %>
<%= classes["classmod"] %> <%= classes["full_name"] %>
<% end %>
<% if classes["infiles"] then %>
(in files
<% classes["infiles"].each do |infiles| %>
<%= href infiles["full_path_url"], infiles["full_path"] %>
<% end # classes["infiles"] %>
)
<% end %>
} + CONTENTS_XML + %{
<% end # values["classes"] %>
<% end %>
}
end