Skip to content

Commit 8cf7244

Browse files
committed
[new release] tyxml-ppx and tyxml (4.3.0)
CHANGES: * Dunify This also removes all the deprecated libraries (`tyxml.syntax`, `tyxml.parser`) and removes the ocamlfind library `tyxml.ppx` in favor of `tyxml-ppx`. (ocsigen/tyxml#197 by Drup, Rudi Grinberg and Anton Bachin) * Add simplistic indentation for the Format-based printer (ocsigen/tyxml#187 by Drup) * Allow the ppx to be used for more exotic tyxml instances, such as reactive elements (ocsigen/tyxml#200 by Drup) * Add `Html.of_seq` and `Svg.of_seq`, which allow to easily import HTML parsed with markup in TyXML (ocsigen/tyxml#221 by Drup) ## Elements and attributes * Add Html.txt and Svg.txt as an alias for `pcdata` (ocsigen/tyxml#222 by Drup) * Add noopener link types (ocsigen/tyxml#198 by Jérôme Vouillon) * Slightly relax dt content type (ocsigen/tyxml#193 by Anton Bachin) * Add touch events (ocsigen/tyxml#211 by Malthe Borch) * Fix handling of figcaption in the PPX (ocsigen/tyxml#219 by Drup)
1 parent 7f6dd22 commit 8cf7244

File tree

2 files changed

+84
-0
lines changed
  • packages
    • tyxml-ppx/tyxml-ppx.4.3.0
    • tyxml/tyxml.4.3.0

2 files changed

+84
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
opam-version: "2.0"
2+
maintainer: "[email protected]"
3+
homepage: "https://github.com/ocsigen/tyxml/"
4+
bug-reports: "https://github.com/ocsigen/tyxml/issues"
5+
doc: "https://ocsigen.org/tyxml/manual/"
6+
dev-repo: "git+https://github.com/ocsigen/tyxml.git"
7+
license: "LGPL-2.1 with OCaml linking exception"
8+
9+
build: [
10+
["dune" "subst"] {pinned}
11+
["dune" "build" "-p" name "-j" jobs]
12+
["dune" "runtest" "-p" name "-j" jobs] {with-test}
13+
]
14+
15+
depends: [
16+
"ocaml" {>= "4.02"}
17+
"dune" {build}
18+
"alcotest" {with-test}
19+
"tyxml"
20+
"markup" {>= "0.7.2"}
21+
"ppx_tools_versioned"
22+
]
23+
24+
synopsis:"PPX that allows to write TyXML documents with the HTML syntax"
25+
description:"""
26+
27+
```ocaml
28+
open Tyxml
29+
let%html to_ocaml = "<a href='ocaml.org'>OCaml!</a>"
30+
```
31+
32+
The TyXML PPX is compatible with all TyXML instance, from textual trees
33+
to reactive virtual DOM trees.
34+
"""
35+
authors: "The ocsigen team"
36+
url {
37+
src:
38+
"https://github.com/ocsigen/tyxml/releases/download/4.3.0/tyxml-4.3.0.tbz"
39+
checksum: "md5=fd834a567f813bf447cab5f4c3a723e2"
40+
}

packages/tyxml/tyxml.4.3.0/opam

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
opam-version: "2.0"
2+
maintainer: "[email protected]"
3+
homepage: "https://github.com/ocsigen/tyxml/"
4+
bug-reports: "https://github.com/ocsigen/tyxml/issues"
5+
doc: "https://ocsigen.org/tyxml/manual/"
6+
dev-repo: "git+https://github.com/ocsigen/tyxml.git"
7+
license: "LGPL-2.1 with OCaml linking exception"
8+
9+
build: [
10+
["dune" "subst"] {pinned}
11+
["dune" "build" "-p" name "-j" jobs]
12+
["dune" "runtest" "-p" name "-j" jobs] {with-test}
13+
]
14+
15+
depends: [
16+
"ocaml" {>= "4.02"}
17+
"dune" {build}
18+
"alcotest" {with-test}
19+
"seq"
20+
"uutf" {>= "1.0.0"}
21+
"re" {>= "1.5.0"}
22+
]
23+
24+
synopsis:"TyXML is a library for building correct HTML and SVG documents"
25+
description:"""
26+
TyXML provides a set of convenient combinators that uses the OCaml
27+
type system to ensure the validity of the generated documents. TyXML
28+
can be used with any representation of HTML and SVG: the textual one,
29+
provided directly by this package, or DOM trees (`js_of_ocaml-tyxml`)
30+
virtual DOM (`virtual-dom`) and reactive or replicated trees
31+
(`eliom`). You can also create your own representation and use it to
32+
instantiate a new set of combinators.
33+
34+
```ocaml
35+
open Tyxml
36+
let to_ocaml = Html.(a ~a:[a_href "ocaml.org"] [txt "OCaml!"])
37+
```
38+
"""
39+
authors: "The ocsigen team"
40+
url {
41+
src:
42+
"https://github.com/ocsigen/tyxml/releases/download/4.3.0/tyxml-4.3.0.tbz"
43+
checksum: "md5=fd834a567f813bf447cab5f4c3a723e2"
44+
}

0 commit comments

Comments
 (0)