Module $(module.name)
# local function use_li(ls)
# if #ls > 1 then return '$(M(module.summary))
$(M(module.description))
## -- bang out the tables of item types for this module (e.g Functions, Tables, etc) # for kind,items in module.kinds() do$(kind)
$(display_name(item)) | $(M(item.summary)) |
# --- currently works for both Functions and Tables. The params field either contains # --- function parameters or table fields. # for kind, items, type in module.kinds() do
$(kind)
-
# for item in items() do
- $(display_name(item))
-
$(M(item.summary))
$(M(item.description))
# if item.params and #item.params > 0 then
$(type.subnames):
-
# for p in iter(item.params) do
$(p)
: $(M(item.params[p]))
# end -- for
Usage:
-
# for usage in iter(item.usage) do
$(li)
$(usage)
$(il) # end -- for # end -- if usage # if item.ret then # local li,il = use_li(item.ret)Returns:
-
# for r in iter(item.ret) do
$(li)$(M(r))$(il)
# end -- for
see also:
-
# for see in iter(item.see) do
$(li)$(see.label)$(il)
# end -- for
# end -- for items
$(M(ldoc.description))
# end # for kind, mods, type in ldoc.kinds() do$(kind)
# kind = kind:lower() # for m in mods() do$(m.name) | $(M(m.summary)) |