nitc :: Catalog :: gen_content_level
# Recursively generate a level in the file tree of the *content* section
private fun gen_content_level(ot: OrderedTree[MConcern], os: Array[Object], res: Template)
do
res.add "<ul>\n"
for o in os do
res.add "<li>"
if o isa MGroup then
var d = ""
var mdoc = o.mdoc
if mdoc != null then d = ": {mdoc.html_synopsis.write_to_string}"
res.add "<strong>{o.name}</strong>{d} ({o.filepath.to_s})"
else if o isa MModule then
var d = ""
var mdoc = o.mdoc
if mdoc != null then d = ": {mdoc.html_synopsis.write_to_string}"
res.add "<strong>{o.name}</strong>{d} ({o.filepath.to_s})"
else
abort
end
var subs = ot.sub.get_or_null(o)
if subs != null then gen_content_level(ot, subs, res)
res.add "</li>\n"
end
res.add "</ul>\n"
end
src/nitcatalog.nit:203,2--227,4