package tyxml
Build not checkedInstall
dune-project
Dependency
Authors
Maintainers
Sources
sha256=cda9dda443d479fadd1f4b8f882aef2a78c6e7ca7cbc95d886dfc5743f86ff9a
md5=c802f3c7036adcea3fc00398c23d1b2b
Description
TyXML allows you to build HTML5 and SVG trees whose validity is ensured by the typechecker. It provides a printer for said XML trees, along with a ppx syntax extension. Finally it also provides a functorial interface to choose your XML datastructure. It's part of the ocsigen project and is used in js_of_ocaml and eliom.
Added to opam-repository:
README
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 tyxmlTo install the PPX:
opam install tyxml-ppx
Dependencies (7)
-
re
>= "1.5.0" - base-bytes
-
uutf
>= "1.0.0" - uchar
-
ocamlbuild
build -
ocamlfind
build -
ocaml
>= "4.02" & < "5.0"
Dev Dependencies (1)
-
alcotest
with-test
Optional Dependencies (3)
Used by (13)
- ansi
- bistro-bio
- bookaml
- cosmetyc
- current-web-pipelines
- current_ansi
- junit
-
mastodon-archive-viewer
< "0.4.0" -
ocsigen-i18n
>= "5.0.0" -
ocsigenserver
< "3.0.0" - plotkicadsch
-
tyxml-lwd
< "0.2" -
tyxml-ppx
< "4.3.0"
Conflicts
None
Build status
Results of building tyxml with each compiler on check.ci.ocaml.org, run of against opam-repository 8d8d144. All results for this package.
Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.
This version is not in the latest run; the versions below are.
- good Package successfully built
- partial One of the dependencies failed to build
- bad Package failed to build
- n/a Package is not available in this environment
- internal Internal failure