Skip to content

Commit

Permalink
Add section for eliom-distillery
Browse files Browse the repository at this point in the history
  • Loading branch information
balat committed Oct 7, 2023
1 parent c919080 commit 7f86132
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions tutos/dev/manual/basics.wiki
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,36 @@ the demo included in
<<a_manual project="eliom" page="intro"|Eliom's user manual>>.
>>

<<section class="docblock" |
<<header |==Compiling a client-server app==>>

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.

>>


<<section class="docblock" |
<<header |==Sessions==>>
Expand Down

0 comments on commit 7f86132

Please sign in to comment.