File tree 2 files changed +687
-1
lines changed
2 files changed +687
-1
lines changed Original file line number Diff line number Diff line change @@ -536,6 +536,8 @@ PPX annotations allow to split the code into these two programs:
536
536
537
537
Same for {{{module%shared }}}, {{{open%shared }}}, {{{type%shared }}} etc.
538
538
539
+ @@class="centered"@@{{@@class="img-col-width-400"@@files/tutorial/client-server.svg|Client-server build system}}
540
+
539
541
===Client values ===
540
542
Client values can be declared within server or shared code as
541
543
{{{[%client[ (<value> : <type>) ] }}}.
@@ -735,7 +737,7 @@ Attributes like {{{a_onclick}}} in module {{{Eliom_content.Html.D}}} or {{{F}}}
735
737
take a client side function as parameter:
736
738
737
739
<<code language="ocaml" class="shared"|
738
- div ~a:[a_onclick [%client fun ev -> ... ]] [ ... ]
740
+ button ~a:[a_onclick [%client fun ev -> ... ]] [ ... ]
739
741
>>
740
742
741
743
Module {{{Lwt_js_events }}} of Js_of_ocaml defines a way to bind browser events
You can’t perform that action at this time.
0 commit comments