Hello, I’ve been learning Ocsigen recently and I used Makefiles* and config from pgocaml template, and tried to create project from scratch, using only configs from template. Here is the only file I have with name test.eliom (project name is “test”):
[%%shared
open Eliom_lib
open Eliom_content
open Html.D
]
[%%shared
module App =
Eliom_registration.App (
struct
let application_name = "test"
let global_data_path = Some ["__global_data__"]
end)
]
let%server main_service =
Eliom_service.create
~path:(Eliom_service.Path [])
~meth:(Eliom_service.Get Eliom_parameter.unit)
()
let%client main_service =
~%main_service
let%shared () =
App.register
~service:main_service
(fun () () ->
Lwt.return
(Eliom_tools.F.html
~title:"test"
~css:[["css";"test.css"]]
Html.F.(body [
h1 [pcdata "Welcome from Eliom's distillery!"];
])))
Errors I get:
ocsigenserver: ocsigen:main: Eliom: in site / - One service or coservice has not been registered on URL /.
ocsigenserver: ocsigen:main: Please correct your modules and make sure you have linked in all the modules...
I know it is trivial question, but what is missing? Thanks.