X-Git-Url: http://nitlanguage.org diff --git a/src/nitcatalog.nit b/src/nitcatalog.nit index 244be79..2a0a4a5 100644 --- a/src/nitcatalog.nit +++ b/src/nitcatalog.nit @@ -22,9 +22,10 @@ module nitcatalog import loader # Scan&load packages, groups and modules -import doc::doc_down # Display mdoc import catalog +import doc::templates::html_model + # A HTML page in a catalog # # This is just a template with the header pre-filled and the footer injected at rendering. @@ -531,6 +532,24 @@ redef class Catalog var piwik_site_id: Int = 1 end +redef class Person + redef fun to_html do + var res = "" + var e = name.html_escape + var page = self.page + if page != null then + res += "" + end + var gravatar = self.gravatar + if gravatar != null then + res += " " + end + res += e + if page != null then res += "" + return res + end +end + var model = new Model var tc = new ToolContext