From df6076a9f0f692c8c1fd1a1423a0c4e423b61719 Mon Sep 17 00:00:00 2001 From: Vincent Balat Date: Wed, 20 Dec 2023 21:18:36 +0100 Subject: [PATCH] basics: add client-server build schema --- files/tutorial/client-server.svg | 684 +++++++++++++++++++++++++++++++ tutos/dev/manual/basics.wiki | 2 + 2 files changed, 686 insertions(+) create mode 100644 files/tutorial/client-server.svg diff --git a/files/tutorial/client-server.svg b/files/tutorial/client-server.svg new file mode 100644 index 00000000..559552e2 --- /dev/null +++ b/files/tutorial/client-server.svg @@ -0,0 +1,684 @@ + + + + + + + + + + + + + + + + + + + + + + + + + let%server + + + + + + + + let%client + + + + + + + + let%shared + + + + + + + + + let%server + + + + + + + + let%shared + + + + + + + + + let%client + + + + + + + + let%shared + + + + + + + + + + + + + + + ppx + ppx + + client-server type-checking + ocamlopt + js_of_ocaml + .cmxs + .js + .eliom + + diff --git a/tutos/dev/manual/basics.wiki b/tutos/dev/manual/basics.wiki index 6b15fd05..93406f06 100644 --- a/tutos/dev/manual/basics.wiki +++ b/tutos/dev/manual/basics.wiki @@ -536,6 +536,8 @@ PPX annotations allow to split the code into these two programs: Same for {{{module%shared}}}, {{{open%shared}}}, {{{type%shared}}} etc. +{{@@class="doc-img-col-width"@@files/tutorial/client-server.svg|Client-server build system}} + ===Client values=== Client values can be declared within server or shared code as {{{[%client[ ( : ) ]}}}.