Skip to content

Commit 5becd44

Browse files
committed
basics: add client-server build schema
1 parent 6794c0f commit 5becd44

File tree

2 files changed

+687
-1
lines changed

2 files changed

+687
-1
lines changed

tutos/dev/manual/basics.wiki

+3-1
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,8 @@ PPX annotations allow to split the code into these two programs:
536536

537537
Same for {{{module%shared}}}, {{{open%shared}}}, {{{type%shared}}} etc.
538538

539+
@@class="centered"@@{{@@class="img-col-width-400"@@files/tutorial/client-server.svg|Client-server build system}}
540+
539541
===Client values===
540542
Client values can be declared within server or shared code as
541543
{{{[%client[ (<value> : <type>) ]}}}.
@@ -735,7 +737,7 @@ Attributes like {{{a_onclick}}} in module {{{Eliom_content.Html.D}}} or {{{F}}}
735737
take a client side function as parameter:
736738

737739
<<code language="ocaml" class="shared"|
738-
div ~a:[a_onclick [%client fun ev -> ... ]] [ ... ]
740+
button ~a:[a_onclick [%client fun ev -> ... ]] [ ... ]
739741
>>
740742

741743
Module {{{Lwt_js_events}}} of Js_of_ocaml defines a way to bind browser events

0 commit comments

Comments
 (0)