<%- navbar %>
<% if header.data then %> <%- header.data %> <% else %>

<%- header.name %>

<% if header.short_desc then %>

<%- header.short_desc %> <% header.short_desc = nil %> <% end %> <% if header.desc then %>

<%- header.desc or "" %> <% header.desc = nil %> <% end %> <% if header.inherits then %>

Inherits from <% for _,name in pairs(header.inherits) do %> <%- name %> <% end %> <% end %>

<% local funcorder = {} %> <% for funcname,_ in pairs(header) do %> <% table.insert(funcorder,funcname) %> <% end %> <% table.sort(funcorder) %>

Contents

<% for _, funcname in ipairs(funcorder) do %> <% local data = header[funcname] %> <% if data and data.short_desc then %> <% if data.type == "function" or data.type == "method" then %> <% else %> <% end %> <% end %> <% end %>
Name Description
<%- funcsig({funcname = funcname, func = header[funcname]}) %> <%- data.short_desc %><%- data.name %> <%- data.short_desc %>

<% local func_fd = assert(io.open("func.etlua","r")) %> <% local func_sec = assert(et.compile(func_fd:read("*a"))) %> <% func_fd:close() %> <% for _, funcname in ipairs(funcorder) do %> <% local data = header[funcname] %> <% print("Data:", data) %> <% if data.type == "method" or data.type == "function" then %> <% print("about to render...") %> <%- assert(func_sec{ name = funcname, data = data }) %> <% print("done rendering...") %>
<% elseif data.type == "field" then %> <% print("about to do field ") %>

<%- funcname %>

<%- data.desc or "" %>


<% else %> <% print("About to do error...") %> <% if funcname ~= "name" and funcname ~= "type" then %>

Unknown field type: <%- data and data.type or "" %> for <%- funcname %>


<% end %> <% end %> <% print("Next chunk...") %> <% end %> <% print("done with all chunks...") %> <% end %>