|
1 | 1 | (lang dune 2.7) |
2 | | - |
3 | 2 | (name tyxml) |
| 3 | + |
| 4 | +(generate_opam_files true) |
| 5 | + |
| 6 | +(maintainers "Ocsigen team <[email protected]>") |
| 7 | +(authors "Ocsigen team <[email protected]>") |
4 | 8 | (license "LGPL-2.1-only with OCaml-LGPL-linking-exception") |
5 | | -(authors "The ocsigen team") |
6 | | - |
7 | 9 | (source (github ocsigen/tyxml)) |
8 | | -(bug_reports "https://github.com/ocsigen/tyxml/issues") |
9 | | -(homepage "https://github.com/ocsigen/tyxml") |
10 | 10 | (documentation "https://ocsigen.org/tyxml/latest/manual/intro") |
11 | | -(generate_opam_files true) |
12 | 11 |
|
13 | 12 | (package |
14 | 13 | (name tyxml-jsx) |
15 | 14 | (synopsis "JSX syntax to write TyXML documents") |
16 | 15 | (description |
17 | | -"\| ```reason |
18 | | -"\| open Tyxml; |
19 | | -"\| let to_reason = <a href=\"reasonml.github.io/\"> \"Reason!\" </a> |
20 | | -"\| ``` |
21 | | -"\| |
22 | | -"\| The TyXML JSX allow to write TyXML documents with reason's JSX syntax. |
23 | | -"\| It works with textual trees, virtual DOM trees, or any TyXML module. |
24 | | -) |
| 16 | +"```reason |
| 17 | +open Tyxml; |
| 18 | +let to_reason = <a href=\"reasonml.github.io/\"> \"Reason!\" </a> |
| 19 | +``` |
| 20 | +
|
| 21 | +The TyXML JSX allow to write TyXML documents with reason's JSX syntax. |
| 22 | +It works with textual trees, virtual DOM trees, or any TyXML module. |
| 23 | +") |
25 | 24 | (depends |
26 | | - (ocaml |
27 | | - (>= 4.04)) |
| 25 | + (ocaml (>= 4.04)) |
28 | 26 | (tyxml (= :version)) |
29 | 27 | (tyxml-syntax (= :version)) |
| 28 | + (ppxlib (>= 0.18)) |
30 | 29 | (alcotest :with-test) |
31 | | - (reason :with-test) |
32 | | - (ppxlib |
33 | | - (>= 0.18)))) |
| 30 | + (reason :with-test))) |
34 | 31 |
|
35 | 32 | (package |
36 | 33 | (name tyxml-ppx) |
37 | 34 | (synopsis "PPX to write TyXML documents with the HTML syntax") |
38 | 35 | (description |
39 | | -"\| ```ocaml |
40 | | -"\| open Tyxml |
41 | | -"\| let%html to_ocaml = \"<a href='ocaml.org'>OCaml!</a>\" |
42 | | -"\| ``` |
43 | | -"\| |
44 | | -"\| The TyXML PPX allow to write TyXML documents using the traditional HTML syntax. |
45 | | -"\| It works with textual trees, virtual DOM trees, or any TyXML module. |
46 | | -) |
| 36 | +"```ocaml |
| 37 | +open Tyxml |
| 38 | +let%html to_ocaml = \"<a href='ocaml.org'>OCaml!</a>\" |
| 39 | +``` |
| 40 | +
|
| 41 | +The TyXML PPX allow to write TyXML documents using the traditional HTML syntax. |
| 42 | +It works with textual trees, virtual DOM trees, or any TyXML module. |
| 43 | +") |
47 | 44 | (depends |
48 | | - (ocaml |
49 | | - (>= 4.04)) |
| 45 | + (ocaml (>= 4.04)) |
50 | 46 | (tyxml (= :version)) |
51 | 47 | (tyxml-syntax (= :version)) |
52 | | - (alcotest :with-test) |
53 | | - (markup |
54 | | - (>= 0.7.2)) |
55 | | - (ppxlib |
56 | | - (>= 0.18)) |
57 | | - (re |
58 | | - (>= 1.5.0)))) |
| 48 | + (markup (>= 0.7.2)) |
| 49 | + (ppxlib (>= 0.18)) |
| 50 | + (re (>= 1.5.0)) |
| 51 | + (alcotest :with-test))) |
59 | 52 |
|
60 | 53 | (package |
61 | 54 | (name tyxml-syntax) |
62 | 55 | (synopsis "Common layer for the JSX and PPX syntaxes for Tyxml") |
63 | 56 | (depends |
64 | | - (ocaml |
65 | | - (>= 4.03)) |
66 | | - (alcotest :with-test) |
67 | | - (ppxlib |
68 | | - (>= 0.18)) |
69 | | - (re |
70 | | - (>= 1.5.0)) |
71 | | - (uutf |
72 | | - (>= 1.0.0)))) |
| 57 | + (ocaml (>= 4.03)) |
| 58 | + (ppxlib (>= 0.18)) |
| 59 | + (re (>= 1.5.0)) |
| 60 | + (uutf (>= 1.0.0)) |
| 61 | + (alcotest :with-test))) |
73 | 62 |
|
74 | 63 | (package |
75 | 64 | (name tyxml) |
76 | 65 | (synopsis "A library for building correct HTML and SVG documents") |
77 | | - (description |
78 | | - "TyXML provides a set of convenient combinators that uses the OCaml type system to ensure the validity of the generated documents. TyXML can be used with any representation of HTML and SVG: the textual one, provided directly by this package, or DOM trees (`js_of_ocaml-tyxml`) virtual DOM (`virtual-dom`) and reactive or replicated trees (`eliom`). You can also create your own representation and use it to instantiate a new set of combinators.") |
| 66 | + (description "TyXML provides a set of convenient combinators that uses the OCaml type system to ensure the validity of the generated documents. TyXML can be used with any representation of HTML and SVG: the textual one, provided directly by this package, or DOM trees (`js_of_ocaml-tyxml`) virtual DOM (`virtual-dom`) and reactive or replicated trees (`eliom`). You can also create your own representation and use it to instantiate a new set of combinators.") |
79 | 67 | (depends |
80 | | - (ocaml |
81 | | - (>= 4.03)) |
82 | | - (alcotest :with-test) |
83 | | - (re |
84 | | - (>= 1.5.0)) |
85 | | - seq |
86 | | - (uutf |
87 | | - (>= 1.0.0)))) |
| 68 | + (ocaml (>= 4.03)) |
| 69 | + (re (>= 1.5.0)) |
| 70 | + (uutf (>= 1.0.0)) |
| 71 | + seq |
| 72 | + (alcotest :with-test))) |
0 commit comments