How does a page's source code look?


With Ocsigen, your website is an application (or several) running in your browser for a certain lifetime. An application has its associated js file, which must have the same name (provided in the Makefile).

For example, we define an application called example:

module Example =
      let application_name = "example"

Ocsigen Services

Ocsigen pages are made using services. Every pages have their own services.

So, to create a page, we have to first declare the service:

let main =