27 lines
385 B
Text
27 lines
385 B
Text
fmt := import("fmt")
|
|
http := import("http")
|
|
html := import("html").Renderer()
|
|
|
|
added := html.ul()
|
|
for i in [1, 2, 3, 4, 5] {
|
|
added.add(html.li().body(i))
|
|
}
|
|
|
|
fmt.println(
|
|
html.html({
|
|
lang: "en"
|
|
}).body(
|
|
html.head().body(
|
|
html.link({
|
|
rel: "stylesheet",
|
|
href: "/web/main.css"
|
|
}).final()
|
|
),
|
|
html.body().body(
|
|
html.p().body(
|
|
">>>shit"
|
|
)
|
|
),
|
|
added
|
|
)
|
|
)
|