package tyxml-ppx
Build not checkedInstall
dune-project
Dependency
Authors
Maintainers
Sources
sha256=516394dd4a5c31726997c51d66aa31cacb91e3c46d4e16c7699130e204042530
sha512=d5f2187f8410524cec7a14b28e8950837070eb0b6571b015dd06076c2841eb7ccaffa86d5d2307eaf1950ee62f9fb926477dac01c870d9c1a2f525853cb44d0c
Description
open Tyxml
let%html to_ocaml = "<a href='ocaml.org'>OCaml!</a>"
The TyXML PPX is compatible with all TyXML instance, from textual trees to reactive virtual DOM trees.
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"] [txt "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>"Finally, TyXML can be used with Reason's JSX syntax:
open Tyxml;
let to_reason = <a href="reasonml.github.io/"> "Reason!" </a>TyXML provides a set of combinators which use the OCaml type system to ensure the validity of the generated document. TyXML can be used on a wide variety of context, either to produce textual documents, to manipulate the DOM tree using Js_of_ocaml, build virtual DOM with [virtual-dom][], or for tierless web programming with Eliom.
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-ppxTo install the JSX:
opam install tyxml-jsx
Dependencies (6)
- ppx_tools_versioned
-
markup
>= "0.7.2" -
tyxml-syntax
= version -
tyxml
= version - dune
-
ocaml
>= "4.02"
Dev Dependencies (1)
-
alcotest
with-test
Optional Dependencies
None
Used by (1)
-
sihl-queue
>= "0.4.0"
Conflicts
None
Build status
Results of building tyxml-ppx 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