tyxml
tyxml copied to clipboard
Build valid HTML and SVG documents
Here is an example of something that doesn't work: ``` ocaml let mytitle = [%html5 "A Fabulous Web Page" ] let mypage = [%html5 " "mytitle" " ] ``` Error...
Consistency is not W3C's strong point, but it's made worse in tyxml. The main pain point is dashes, since they are not valid in ocaml's identifiers. So a more formal...
While working with the ppx, I noticed something ... strange. ``` ocaml # let x = Html5.Xml.W.nil () ;; val x : '_a list = [] # let x :...
Currently, `Xml_iter` is very crude and not very used. I would like to both improve the functionality and deprecate the current interface. We can do that by providing a way...
I think it would be interesting to be able to put several class attributes. ``` let popup ?(a = []) content = let box = D.div ~a:(a_class ["popup"]::a) content in...
tyxml-ppx was already >= 4.04
To avoid the warning about deprecated Node.js 16 actions. See https://github.com/ocsigen/tyxml/actions/runs/8134818335.
Consider the following OCaml file: ```ocaml open Tyxml let%svg test = {| |} (* Notice the space between the opening and closing of the g tag. *) ``` The content...