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

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sanity committed Mar 16, 2020
1 parent 66356a2 commit 47f7e44
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion database.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ Kweb doesn't require you to use Shoebox. You're free to use any database, eithe
Working Example
---------------

For a more complete example of using Shoebox for persistent storage see the `to do demo <https://github.com/kwebio/kweb-core/tree/master/src/main/kotlin/io/kweb/demos/todo>`_.
For a more complete example of using Shoebox for persistent storage see the `to do demo <https://github.com/kwebio/kweb-core/tree/master/src/main/kotlin/kweb/demos/todo>`_.
8 changes: 4 additions & 4 deletions dom.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ DOM Basics
Creating DOM Elements and Fragments
-----------------------------------

The DOM is built starting with an `Element <https://github.com/kwebio/kweb-core/blob/master/src/main/kotlin/io/kweb/dom/element/Element.kt>`_, typically the `BodyElement <https://github.com/kwebio/kweb-core/blob/master/src/main/kotlin/io/kweb/dom/Document.kt#L43>`_ which is obtained easily as follows:
The DOM is built starting with an `Element <https://github.com/kwebio/kweb-core/blob/master/src/main/kotlin/kweb/dom/element/Element.kt>`_, typically the `BodyElement <https://github.com/kwebio/kweb-core/blob/master/src/main/kotlin/kweb/dom/Document.kt#L43>`_ which is obtained easily as follows:

.. code-block:: kotlin
Expand All @@ -18,7 +18,7 @@ The DOM is built starting with an `Element <https://github.com/kwebio/kweb-core/
}
}
Let's create a `ButtonElement <https://github.com/kwebio/kweb-core/blob/master/src/main/kotlin/io/kweb/dom/element/creation/tags/other.kt#L14>`_ as a child of the body element, we do this using the *.new* function (which is
Let's create a `ButtonElement <https://github.com/kwebio/kweb-core/blob/master/src/main/kotlin/kweb/dom/element/creation/tags/other.kt#L14>`_ as a child of the body element, we do this using the *.new* function (which is
supported by all Element types):

.. code-block:: kotlin
Expand Down Expand Up @@ -117,13 +117,13 @@ infamous and now-obsolete <blink> tag:
Extending Kweb to support new HTML tags
---------------------------------------

Adding support for new tags to Kweb is easy, take a look at `the source <https://github.com/kwebio/kweb-core/blob/master/src/main/kotlin/io/kweb/dom/element/creation/tags/other.kt>`_.
Adding support for new tags to Kweb is easy, take a look at `the source <https://github.com/kwebio/kweb-core/blob/master/src/main/kotlin/kweb/dom/element/creation/tags/other.kt>`_.
If you add some useful functionality please submit a pull request `via Github <https://github.com/kwebio/kweb-core>`_, or just `ask us <https://github.com/kwebio/kweb-core/issues>`_
and we'll do our best to add support.


Further Reading
---------------

The `Element <https://github.com/kwebio/kweb-core/blob/master/src/main/kotlin/io/kweb/dom/element/Element.kt>`_ class
The `Element <https://github.com/kwebio/kweb-core/blob/master/src/main/kotlin/kweb/dom/element/Element.kt>`_ class
provides many other useful ways to interact with DOM elements.
6 changes: 3 additions & 3 deletions faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Kweb to, as there are also very important differences:
Is there a larger working example?
----------------------------------

Yes, here is a simple `todo list <https://github.com/kwebio/kweb-core/tree/master/src/main/kotlin/io/kweb/demos/todo>`_
Yes, here is a simple `todo list <https://github.com/kwebio/kweb-core/tree/master/src/main/kotlin/kweb/demos/todo>`_
implementation which demonstrates many of Kweb's features.

You can find a copy of this demo running here: http://demo.kweb.io:7659/
Expand All @@ -58,7 +58,7 @@ how they synchronize in realtime.
How do I enable HTTPS?
----------------------

Very easily, please see `this example <https://github.com/kwebio/kweb-core/blob/master/src/main/kotlin/io/kweb/demos/https/HttpsApp.kt>`_.
Very easily, please see `this example <https://github.com/kwebio/kweb-core/blob/master/src/main/kotlin/kweb/demos/https/HttpsApp.kt>`_.

What about templates?
---------------------
Expand Down Expand Up @@ -94,7 +94,7 @@ Find a new job.
Can Kweb be embedded in an existing Ktor app?
---------------------------------------------

Yes! Please see `this example <https://github.com/kwebio/kweb-core/blob/master/src/main/kotlin/io/kweb/demos/feature/FeatureApp.kt>`_.
Yes! Please see `this example <https://github.com/kwebio/kweb-core/blob/master/src/main/kotlin/kweb/demos/feature/FeatureApp.kt>`_.

I have a question not answered here
-----------------------------------
Expand Down
4 changes: 2 additions & 2 deletions state.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ to the browser.
Building blocks
---------------

A `KVar <https://github.com/kwebio/kweb-core/blob/master/src/main/kotlin/io/kweb/state/KVar.kt>`_ class contains a
A `KVar <https://github.com/kwebio/kweb-core/blob/master/src/main/kotlin/kweb/state/KVar.kt>`_ class contains a
single typed object, which can change over time. For example:

.. code-block:: kotlin
Expand Down Expand Up @@ -101,7 +101,7 @@ Any changes to the KVar will be reflected in realtime in the browser, and simila
This will also work for <option> and <textarea> elements which also have values.

See also: `ValueElement.value <https://github.com/kwebio/kweb-core/blob/master/src/main/kotlin/io/kweb/dom/element/creation/tags/form.kt#L113>`_
See also: `ValueElement.value <https://github.com/kwebio/kweb-core/blob/master/src/main/kotlin/kweb/dom/element/creation/tags/form.kt#L113>`_

Rendering state to a DOM fragment
---------------------------------
Expand Down
2 changes: 1 addition & 1 deletion style.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Other UI Frameworks
It's easy to create Kweb plugins for many JavaScript tools and frameworks, taking full advantage of Kotlin's DSL
capabilities.

The `Fomantic UI plugin implementation <https://github.com/kwebio/kweb-core/tree/master/src/main/kotlin/io/kweb/plugins/fomanticUI>`_
The `Fomantic UI plugin implementation <https://github.com/kwebio/kweb-core/tree/master/src/main/kotlin/kweb/plugins/fomanticUI>`_
itself can serve as an example.

Example and Demo
Expand Down

0 comments on commit 47f7e44

Please sign in to comment.