From 7f86132076ee518f427fc537ea3614fda739fd0e Mon Sep 17 00:00:00 2001 From: Vincent Balat Date: Sat, 7 Oct 2023 17:10:51 +0200 Subject: [PATCH] Add section for eliom-distillery --- tutos/dev/manual/basics.wiki | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/tutos/dev/manual/basics.wiki b/tutos/dev/manual/basics.wiki index f6a6c302..6b15fd05 100644 --- a/tutos/dev/manual/basics.wiki +++ b/tutos/dev/manual/basics.wiki @@ -645,6 +645,36 @@ the demo included in <>. >> +<
> + +Compiling a client-server app requires a dedicated build system, +which will separate server-side and client-side code, compile each side, +and check types. + +Eliom provides two build-systems: + * One based on dune + * One with make + +To get the dune-based build-system, create a project with Ocsigen-Start's template. Install Ocsigen-Start: +{{{ +opam install ocsigen-start +}}} +Then: +{{{ +eliom-distillery -template os.pgocaml -name myapp +}}} +It contains by default some code examples that you can remove or adapt to your own needs. +Have a look at the {{{README}}} file. + +The make-based build system is provided by the basic template: +{{{ +eliom-distillery -template basic.ppx -name myapp +}}} +Have a look at the {{{README}}} file. + +>> + <
>