| 1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
| 2 |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
| 3 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> |
| 4 |
<head> |
| 5 |
<title>Flaw Reference Manual: <%=module_doc.name%></title> |
| 6 |
<link rel="stylesheet" href="<%=luadoc.doclet.html.link('luadoc.css', 'modules/'..module_doc.name)%>" type="text/css" /> |
| 7 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
| 8 |
</head> |
| 9 |
|
| 10 |
<body> |
| 11 |
<div id="container"> |
| 12 |
<div id="header"> |
| 13 |
<%=luadoc.doclet.html.include("header.lp", { module_doc=module_doc })%> |
| 14 |
</div> |
| 15 |
<div id="main"> |
| 16 |
<div id="navigation"> |
| 17 |
<%=luadoc.doclet.html.include("menu.lp", |
| 18 |
{ doc=doc, module_doc=module_doc })%> |
| 19 |
</div> |
| 20 |
|
| 21 |
<div id="content"> |
| 22 |
<h1>Module <code><%=module_doc.name%></code></h1> |
| 23 |
|
| 24 |
<div class="meta"> |
| 25 |
<%if module_doc.copyright then%> |
| 26 |
<p><small>Copyright© <%=module_doc.copyright%></small></p> |
| 27 |
<%end%> |
| 28 |
|
| 29 |
<%if module_doc.author then%> |
| 30 |
<p><small><b><%= #module_doc.author>1 and "Authors" or "Author" %>:</b></small></p> |
| 31 |
<%for _, author in ipairs(module_doc.author) do%> |
| 32 |
<p> <%= author %></p> |
| 33 |
<%end%> |
| 34 |
<%end%> |
| 35 |
|
| 36 |
<%if module_doc.release then%> |
| 37 |
<p><small><b>Release:</b> <%=module_doc.release%></small></p> |
| 38 |
<%end%> |
| 39 |
</div> |
| 40 |
|
| 41 |
<!-- Display description minus the summary line. --> |
| 42 |
<%=module_doc.description:match('^[%a%d%s]*%. (.*)$') or module_doc.description%> |
| 43 |
|
| 44 |
<%if #module_doc.functions > 0 then%> |
| 45 |
<h2>Functions</h2> |
| 46 |
<table class="function_list"> |
| 47 |
<%for _, func_name in ipairs(module_doc.functions) do |
| 48 |
local func_data = module_doc.functions[func_name]%> |
| 49 |
<tr> |
| 50 |
<td class="name"><%=func_data.private and "local " or ""%><a href="#<%=func_name%>"><%=func_name%></a> (<%=table.concat(module_doc.functions[func_name].param, ", ")%>)</td> |
| 51 |
<td class="summary"><%=module_doc.functions[func_name].summary%></td> |
| 52 |
</tr> |
| 53 |
<%end%> |
| 54 |
</table> |
| 55 |
<%end%> |
| 56 |
|
| 57 |
<%if #module_doc.tables > 0 then%> |
| 58 |
<h2>Tables</h2> |
| 59 |
<table class="table_list"> |
| 60 |
<%for _, tab_name in ipairs(module_doc.tables) do%> |
| 61 |
<tr> |
| 62 |
<td class="name"><a href="#<%=tab_name%>"><%=tab_name%></a></td> |
| 63 |
<td class="summary"><%=module_doc.tables[tab_name].summary%></td> |
| 64 |
</tr> |
| 65 |
<%end%> |
| 66 |
</table> |
| 67 |
<%end%> |
| 68 |
<br/><br/> |
| 69 |
|
| 70 |
<%if #module_doc.functions > 0 then%> |
| 71 |
<h2><a name="functions"></a>Functions</h2> |
| 72 |
<dl class="function"> |
| 73 |
<%for _, func_name in ipairs(module_doc.functions) do%> |
| 74 |
<%=luadoc.doclet.html.include("function.lp", { doc=doc, module_doc=module_doc, func=module_doc.functions[func_name] })%> |
| 75 |
<%end%> |
| 76 |
</dl> |
| 77 |
<%end%> |
| 78 |
|
| 79 |
<%if #module_doc.tables > 0 then%> |
| 80 |
<h2><a name="tables"></a>Tables</h2> |
| 81 |
<dl class="table"> |
| 82 |
<%for _, tab_name in ipairs(module_doc.tables) do%> |
| 83 |
<%=luadoc.doclet.html.include("table.lp", { doc=doc, module_doc=module_doc, tab=module_doc.tables[tab_name] })%> |
| 84 |
<%end%> |
| 85 |
</dl> |
| 86 |
<%end%> |
| 87 |
|
| 88 |
</div> <!-- id="content" --> |
| 89 |
</div> <!-- id="main" --> |
| 90 |
|
| 91 |
<div id="footer"><%=luadoc.doclet.html.include("footer.lp")%></div> |
| 92 |
</div> <!-- id="container" --> |
| 93 |
</body> |
| 94 |
</html> |