src/doc: make DocPage render itself instead of using a TplPage
[nit.git] / src / doc / html_templates / html_components.nit
index 470cb10..5194e08 100644 (file)
 # Pages are assembled using `Template`
 module html_components
 
+import doc_base
 import template
 import json::static
 
 # A documentation page
-class TplPage
+redef class DocPage
        super Template
 
-       # The unescaped page title to put in the HTML header.
-       var title: String is writable, noinit
-
        # Page url
        var url: String is writable, noinit