blob: 5bb03fbdd0d45201f2206eabf6e0fdd717e85795 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
package org.jetbrains.dokka
public trait HtmlTemplateService {
fun appendHeader(to: StringBuilder)
fun appendFooter(to: StringBuilder)
class object {
public fun default(css: String? = null): HtmlTemplateService {
return object : HtmlTemplateService {
override fun appendFooter(to: StringBuilder) {
to.appendln("</BODY>")
to.appendln("</HTML>")
}
override fun appendHeader(to: StringBuilder) {
to.appendln("<HTML>")
to.appendln("<HEAD>")
if (css != null) {
to.appendln("<link rel=\"stylesheet\" href=\"$css\">")
}
to.appendln("</HEAD>")
to.appendln("<BODY>")
}
}
}
}
}
|