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

Commit

Permalink
fix packages
Browse files Browse the repository at this point in the history
  • Loading branch information
sanity committed Mar 16, 2020
1 parent 289d393 commit 66356a2
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 28 deletions.
18 changes: 9 additions & 9 deletions dom.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ The DOM is built starting with an `Element <https://github.com/kwebio/kweb-core/

.. code-block:: kotlin
import io.kweb.*
import io.kweb.dom.element.*
import kweb.*
import kweb.dom.element.*
fun main() {
Kweb(port = 16097) {
Expand All @@ -23,8 +23,8 @@ supported by all Element types):

.. code-block:: kotlin
import io.kweb.*
import io.kweb.dom.element.*
import kweb.*
import kweb.dom.element.*
fun main() {
Kweb(port = 16097) {
Expand Down Expand Up @@ -67,11 +67,11 @@ Kweb can also read from the DOM, in this case the value of an <input> element:

.. code-block:: kotlin
import io.kweb.Kweb
import io.kweb.dom.element.creation.tags.*
import io.kweb.dom.element.events.on
import io.kweb.dom.element.new
import io.kweb.state.KVar
import kweb.Kweb
import kweb.dom.element.creation.tags.*
import kweb.dom.element.events.on
import kweb.dom.element.new
import kweb.state.KVar
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.future.await
import kotlinx.coroutines.launch
Expand Down
2 changes: 1 addition & 1 deletion events.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Since the code to respond to events runs on the server, there may be a short lag
event and any changes to the DOM caused by the event handler. This was a common complaint about previous server-driven
web frameworks like Vaadin, inhibiting their adoption.

Fortunately, Kweb has a solution - `onImmediate <https://jitpack.io/com/github/kwebio/core/0.3.15/javadoc/io.kweb.dom.element.events/on-immediate.html>`_:
Fortunately, Kweb has a solution:

.. code-block:: kotlin
Expand Down
12 changes: 6 additions & 6 deletions gettingstarted.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ Create a new Kotlin file and type this:

.. code-block:: kotlin
import io.kweb.*
import io.kweb.dom.element.*
import io.kweb.dom.element.creation.tags.*
import kweb.*
import kweb.dom.element.*
import kweb.dom.element.creation.tags.*
fun main() {
Kweb(port = 16097) {
Expand Down Expand Up @@ -80,9 +80,9 @@ Here is a simple example using an ordinary Kotlin *for loop*:

.. code-block:: kotlin
import io.kweb.*
import io.kweb.dom.element.*
import io.kweb.dom.element.creation.tags.*
import kweb.*
import kweb.dom.element.*
import kweb.dom.element.creation.tags.*
fun main() {
Kweb(port = 16097) {
Expand Down
18 changes: 9 additions & 9 deletions routing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ A simple example

.. code-block:: kotlin
import io.kweb.Kweb
import io.kweb.dom.element.new
import io.kweb.dom.element.creation.tags.h1
import io.kweb.routing.route
import kweb.Kweb
import kweb.dom.element.new
import kweb.dom.element.creation.tags.h1
import kweb.routing.route
fun main() {
Kweb(port = 16097) {
Expand Down Expand Up @@ -84,11 +84,11 @@ page URL:

.. code-block:: kotlin
import io.kweb.Kweb
import io.kweb.dom.element.creation.tags.a
import io.kweb.dom.element.new
import io.kweb.routing.route
import io.kweb.state.*
import kweb.Kweb
import kweb.dom.element.creation.tags.a
import kweb.dom.element.new
import kweb.routing.route
import kweb.state.*
fun main() {
Kweb(port = 16097) {
Expand Down
6 changes: 3 additions & 3 deletions style.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ First tell Kweb to use the Fomantic UI plugin:

.. code-block:: kotlin
import io.kweb.plugins.fomanticUI.*
import kweb.plugins.fomanticUI.*
fun main() {
Kweb(port = 16097, plugins = listOf(fomanticUIPlugin)) {
Expand All @@ -36,8 +36,8 @@ This translates to the Kotlin:

.. code-block:: kotlin
import io.kweb.plugins.fomanticUI.*
import io.kweb.dom.element.creation.tags.InputType.*
import kweb.plugins.fomanticUI.*
import kweb.dom.element.creation.tags.InputType.*
fun main() {
Kweb(port = 16097, plugins = listOf(fomanticUIPlugin)4) {
Expand Down

0 comments on commit 66356a2

Please sign in to comment.