X-Git-Url: http://nitlanguage.org
diff --git a/src/doc/doc_templates.nit b/src/doc/doc_templates.nit
index 8384ba9..c23e880 100644
--- a/src/doc/doc_templates.nit
+++ b/src/doc/doc_templates.nit
@@ -23,7 +23,7 @@ import json::static
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
@@ -45,7 +45,7 @@ class TplPage
var sections = new Array[TplSection]
# Footer content if any
- var footer: nullable Streamable = null is writable
+ var footer: nullable Writable = null is writable
# JS scripts to append at the end of the body
var scripts = new Array[TplScript]
@@ -70,7 +70,7 @@ class TplPage
addn " "
addn " "
addn " "
- addn "
{title}"
+ addn " {title.html_escape}"
addn ""
add "` tags
- fun add_item(content: Streamable, is_active: Bool) do
+ fun add_item(content: Writable, is_active: Bool) do
var tpl = new Template
tpl.add "
"
@@ -589,9 +589,9 @@ end
class TplSearchPage
super TplSectionElt
- var modules = new Array[Streamable]
- var classes = new Array[Streamable]
- var props = new Array[Streamable]
+ var modules = new Array[Writable]
+ var classes = new Array[Writable]
+ var props = new Array[Writable]
redef fun rendering do
var title = self.title
@@ -650,10 +650,10 @@ class TplLink
# Link href
var href: String is writable
- # Text to display in the link
- var text: Streamable is writable
+ # The raw HTML content to display in the link
+ var text: Writable is writable
- # Optional title
+ # The unescaped optional title.
var title: nullable String = null is writable
init with_title(href, text, title: String) do
@@ -663,11 +663,11 @@ class TplLink
redef fun rendering do
add ""
@@ -717,16 +717,16 @@ class TplListItem
# CSS classes of the