Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The documentation for creating links to services seems to be out of date #247

Open
shonfeder opened this issue Sep 22, 2024 · 0 comments
Open

Comments

@shonfeder
Copy link

On https://ocsigen.org/eliom/dev/manual/server-links I find an example of how to create links like this:

open Eliom_content

 let links = Eliom_registration.Html.create
   ~path:(Eliom_service.Path ["rep";"links"])
   ~meth:(Eliom_service.Get Eliom_parameter.unit)
 (fun () () ->
   Lwt.return
    Html.D.(
      html
       (head (title (txt "Links")) [])
       (body
         [p
          [a theservice [txt "coucou"] (); br ();
           a hello [txt "hello"] (); br ();
           a default
             [txt "default page of the dir"] (); br ();

However, D.a seems to require services be supplied with the ~service label. I gave a quick search on the ocsigen org to see where I would update this document, but didn't find an obvious file. If this needs updating, I can do it for this example if I get a pointer to the relevant file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant