%
if module_doc then
from = "modules/"..module_doc.name
elseif file_doc then
from = "files/.."..file_doc.name
else
from = ""
end
%>
<%=func.private and "local " or ""%><%=func.printname%> (<%=table.concat(func.param or {}, ", ")%>)
<%=func.description or ""%>
<%if type(func.param) == "table" and #func.param > 0 then%>
Parameters
<%for p = 1, #func.param do%>
-
<%=func.param[p]%>: <%=func.param[func.param[p]] or ""%>
<%end%>
<%end%>
<%if type(func.usage) == "string" then%>
Usage:
<%=func.usage%>
<%elseif type(func.usage) == "table" then%>
Usage
<%for _, usage in ipairs(func.usage) do%>
- <%= usage %>
<%end%>
<%end%>
<%if type(func.ret) == "string" then%>
Return value:
<%=func.ret%>
<%elseif type(func.ret) == "table" then%>
Return values:
<%for _, ret in ipairs(func.ret) do%>
- <%= ret %>
<%end%>
<%end%>
<%if type(func.see) == "string" then %>
See also:
<%=func.see%>
<%elseif type(func.see) == "table" and #func.see > 0 then %>
See also:
<%end%>