1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
<%= head_template(config, %{title: module.title}) %>
<h1 id="content">
<%= module.title %> <%= H.module_type(module) %>
</h1>
<%= if deprecated = module.deprecated do %>
<div class="deprecated">
This <%= module.type %> is deprecated. <%=h deprecated %>.
</div>
<% end %>
<%= if doc = module.rendered_doc do %>
<section id="moduledoc" class="docstring">
<%= H.link_moduledoc_headings(doc) %>
</section>
<% end %>
<%= if summary != [] do %>
<section id="summary" class="details-list">
<h1 class="section-heading">Summary</h1>
<%= for {name, nodes} <- summary, do: H.summary_template(name, nodes) %>
</section>
<% end %>
<%= for {name, nodes} <- summary, key = text_to_id(name) do %>
<section id="<%= key %>" class="details-list">
<h1 class="section-heading"><%=h to_string(name) %></h1>
<div class="<%= key %>-list">
<%= for node <- nodes, do: H.detail_template(node, module) %>
</div>
</section>
<% end %>
<%= before_closing_body_tag(config, :epub) %>
</body>
</html>
|