Skip to content
This repository has been archived by the owner on Oct 9, 2022. It is now read-only.

Commit

Permalink
misc improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
sanity committed Dec 20, 2018
1 parent 71bb70b commit cd60418
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions gettingstarted.rst
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,10 @@ We have the full expressiveness of Kotlin at our disposal. Witness the power of
fun main() {
Kweb(port = 8091) {
doc.body.new {
for (x in 1..5) {
h1().text("Hello World $x!")
ul().new {
for (x in 1..5) {
li().text("Hello World $x!")
}
}
}
}
Expand All @@ -87,9 +89,11 @@ To produce...
.. code-block:: html

<body>
<h1>Hello World 1!</h1>
<h1>Hello World 2!</h1>
<h1>Hello World 3!</h1>
<h1>Hello World 4!</h1>
<h1>Hello World 5!</h1>
<ul>
<li>Hello World 1!</li>
<li>Hello World 2!</li>
<li>Hello World 3!</li>
<li>Hello World 4!</li>
<li>Hello World 5!</li>
<ul>
</body>

0 comments on commit cd60418

Please sign in to comment.