diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/01-hello-world/README.md | 2 | ||||
-rw-r--r-- | examples/01-hello-world/header.png | bin | 0 -> 327828 bytes | |||
-rw-r--r-- | examples/02-interactivity/README.md | 44 | ||||
-rw-r--r-- | examples/02-interactivity/header.png | bin | 0 -> 320493 bytes | |||
-rw-r--r-- | examples/03-controlled-inputs/README.md | 2 | ||||
-rw-r--r-- | examples/03-controlled-inputs/header.png | bin | 0 -> 330067 bytes | |||
-rw-r--r-- | examples/05-http-requests/README.md | 2 | ||||
-rw-r--r-- | examples/05-http-requests/header.png | bin | 0 -> 369241 bytes |
8 files changed, 29 insertions, 21 deletions
diff --git a/examples/01-hello-world/README.md b/examples/01-hello-world/README.md index 5302fe3..cd9c068 100644 --- a/examples/01-hello-world/README.md +++ b/examples/01-hello-world/README.md @@ -1,3 +1,5 @@ + + # 01 Hello World This hello world example is a tiny example of what you need to put together to diff --git a/examples/01-hello-world/header.png b/examples/01-hello-world/header.png Binary files differnew file mode 100644 index 0000000..dd76b40 --- /dev/null +++ b/examples/01-hello-world/header.png diff --git a/examples/02-interactivity/README.md b/examples/02-interactivity/README.md index d2e486a..5cfbf4f 100644 --- a/examples/02-interactivity/README.md +++ b/examples/02-interactivity/README.md @@ -1,3 +1,5 @@ + + # 02 Interactivity In this example we show the basic structure of all Lustre applications with a @@ -19,32 +21,32 @@ These three pieces come together to form a self-contained update loop. You produ an initial model, render it as HTML, and convert any user interactions into messages to handle in the update function. - ```text - +--------+ - | | - | update | - | | - +--------+ - ^ | - | | - Msg | | Model - | | - | v +```text + +--------+ + | | + | update | + | | + +--------+ + ^ | + | | + Msg | | Model + | | + | v +------+ +------------------------+ | | Model | | | init |------------------------>| Lustre Runtime | | | | | +------+ +------------------------+ - ^ | - | | - Msg | | Model - | | - | v - +--------+ - | | - | view | - | | - +--------+ + ^ | + | | + Msg | | Model + | | + | v + +--------+ + | | + | view | + | | + +--------+ ``` ### Model diff --git a/examples/02-interactivity/header.png b/examples/02-interactivity/header.png Binary files differnew file mode 100644 index 0000000..6cca8a2 --- /dev/null +++ b/examples/02-interactivity/header.png diff --git a/examples/03-controlled-inputs/README.md b/examples/03-controlled-inputs/README.md index 5326f25..297a3c7 100644 --- a/examples/03-controlled-inputs/README.md +++ b/examples/03-controlled-inputs/README.md @@ -1 +1,3 @@ + + # 03 Controlled Inputs diff --git a/examples/03-controlled-inputs/header.png b/examples/03-controlled-inputs/header.png Binary files differnew file mode 100644 index 0000000..336fb18 --- /dev/null +++ b/examples/03-controlled-inputs/header.png diff --git a/examples/05-http-requests/README.md b/examples/05-http-requests/README.md index d6d82bd..2fd846d 100644 --- a/examples/05-http-requests/README.md +++ b/examples/05-http-requests/README.md @@ -1 +1,3 @@ + + # 04 HTTP Requests diff --git a/examples/05-http-requests/header.png b/examples/05-http-requests/header.png Binary files differnew file mode 100644 index 0000000..f08fb17 --- /dev/null +++ b/examples/05-http-requests/header.png |