package tyxml
TyXML is a library for building statically correct HTML5 and SVG documents
Install
Dune Dependency
Authors
Maintainers
Sources
4.0.1.tar.gz
sha256=b7dbb6dbb8a02c0ab62f078695af6fbb636d162bd0f341fc9bda7d88ef9a1dfa
md5=7e80bfe81bd9fb1063ee12e35198211a
README.md.html
TyXML
TyXML is a library for building statically correct HTML5 and SVG documents:
open Tyxml
let to_ocaml = Html.(a ~a:[a_href "ocaml.org"] [pcdata "OCaml!"])
Tyxml can also be used with the standard HTML syntax, using the PPX:
open Tyxml
let%html to_ocaml = "<a href='ocaml.org'>OCaml!</a>"
TyXML provides a set of combinators. These combinators use the OCaml type system to ensure the validity of the generated document. They are used in various libraries, such as Eliom and Js_of_ocaml.
The documentation can be consulted on the TyXML website. Examples are available in the examples directory.
Installation
TyXML is available in OPAM:
opam install tyxml
To install the PPX:
opam install tyxml-ppx
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>