How does a page's source code look?

Application

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 =
  Eliom_registration.App
    (struct
      let application_name = "example"
     end)

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 =
  Eliom_service.service
    ~path:[]
    ~get_€aram{: