X-Git-Url: http://nitlanguage.org diff --git a/src/doc/doc_templates.nit b/src/doc/doc_templates.nit index dc05b33..cbb625e 100644 --- a/src/doc/doc_templates.nit +++ b/src/doc/doc_templates.nit @@ -17,12 +17,13 @@ module doc_templates import template +import json::static # A documentation page class TplPage super Template - # Page title in HTML header + # The unescaped page title to put in the HTML header. var title: String is writable, noinit # Page url @@ -49,8 +50,6 @@ class TplPage # JS scripts to append at the end of the body var scripts = new Array[TplScript] - init do end - # Add a section to this page fun add_section(section: TplSection) do sections.add section @@ -58,28 +57,31 @@ class TplPage # Render the html header private fun render_head do - add "" - add "
" - add " " - add " " - add " " - add " " - add " " - add " " - add " " - add " " - add "