.TH "Eliom_tools.Xhtml" 3o 2012-06-11 OCamldoc "" .SH NAME Eliom_tools.Xhtml \- Menu and hierarchical site for XHTML .SH Module Module Eliom_tools.Xhtml .SH Documentation .sp Module .BI "Xhtml" : .B sig end .sp Menu and hierarchical site for XHTML .sp .sp .sp .sp .PP .B === .B Menus .B === .PP .I val menu : .B ?classe:Xhtml_types.nmtoken list -> .B ?id:string -> .B ([< Eliom_service.get_service_kind ] as 'a, .B [< Eliom_service.registrable ] as 'b, .B [< Eliom_registration.non_caml_service ] as 'c) .B Eliom_tools.one_page * Xhtml_types.a_content Eliom_content.Xhtml.F.elt list -> .B (('a, 'b, 'c) Eliom_tools.one_page * .B Xhtml_types.a_content Eliom_content.Xhtml.F.elt list) .B list -> .B ?service:('a, 'b, 'c) Eliom_tools.one_page -> .B unit -> [> `Ul ] Eliom_content.Xhtml.F.elt .sp The function .B menu first_elt elts () , where .B first_elt::elts is a list of pair .B (service, content) , creates a list of link towards the .B service s\&. See the Eliom manual for an \&. .sp The optional parameter .B service is used to find which item(s) to highlight (by adding the class .B eliomtools_current to the corresponding .B
  • node)\&. The default is to highlight the item corresponding to the current url\&. .sp The optional parameters .B id and .B classe allow to specify the corresponding attributes in the generated .B