package tyxml

  1. Overview
  2. Docs
TyXML is a library for building correct HTML and SVG documents

Install

Dune Dependency

Authors

Maintainers

Sources

tyxml-4.3.0.tbz
sha256=6e1bd76b184eb8bf43550138fa1e14f03b5761187ff38891179a36bdddbdbfc3
md5=fd834a567f813bf447cab5f4c3a723e2

doc/tyxml.tools/Tyxml_name/index.html

Module Tyxml_name

Gives the tyxml names for HTML elements and attributes.

val to_ocaml : string -> string

The transformations are the following:

  • Valid letters in OCaml identifiers are kept.
  • Everything else is turn into an underscore '_'.
val ident : string -> string

Turn the given element name into a valid identifier.

Follow the to_ocaml convention and lowercase the first letter.

val attrib : string -> string

Turn the given attribute name into a valid identifier.

Follow the to_ocaml convention and add "a_" at the beginning.

val polyvar : string -> string

Turn the given name into a valid Polymorphic variant name.

Follow the to_ocaml convention, uppercase the first letter and add "`".

OCaml

Innovation. Community. Security.