Skip to content

Commit

Permalink
Replace open%shared Js_of_ocaml by open%client Js_of_ocaml
Browse files Browse the repository at this point in the history
Not accepted with new dune-based build system
  • Loading branch information
balat committed Mar 18, 2024
1 parent 7895324 commit 96620fd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
7 changes: 3 additions & 4 deletions tutos/7.1/manual/application.wiki
Original file line number Diff line number Diff line change
Expand Up @@ -371,9 +371,8 @@ The client side process is not strictly separated from the server
side. We can access some server variables from the client code. For
instance:

<<code language="ocaml" class="shared"|

open%shared Js_of_ocaml
<<code language="ocaml" class="client"|
open%client Js_of_ocaml
>>
<<code language="ocaml" class="server"|

Expand Down Expand Up @@ -486,9 +485,9 @@ Here is the (full) new version of the program:
<<code language="ocaml" class="shared"|
(* Modules opened with open%shared are available in client and server-code *)
open%shared Eliom_content
open%shared Js_of_ocaml
>>
<<code language="ocaml" class="client"|
open%client Js_of_ocaml
open%client Js_of_ocaml_lwt
>>
<<code language="ocaml" class="server"|
Expand Down
7 changes: 3 additions & 4 deletions tutos/dev/manual/application.wiki
Original file line number Diff line number Diff line change
Expand Up @@ -371,9 +371,8 @@ The client side process is not strictly separated from the server
side. We can access some server variables from the client code. For
instance:

<<code language="ocaml" class="shared"|

open%shared Js_of_ocaml
<<code language="ocaml" class="client"|
open%client Js_of_ocaml
>>
<<code language="ocaml" class="server"|

Expand Down Expand Up @@ -486,9 +485,9 @@ Here is the (full) new version of the program:
<<code language="ocaml" class="shared"|
(* Modules opened with open%shared are available in client and server-code *)
open%shared Eliom_content
open%shared Js_of_ocaml
>>
<<code language="ocaml" class="client"|
open%client Js_of_ocaml
open%client Js_of_ocaml_lwt
>>
<<code language="ocaml" class="server"|
Expand Down

0 comments on commit 96620fd

Please sign in to comment.