forked from ocsigen/tyxml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dune-project
85 lines (80 loc) · 2.26 KB
/
dune-project
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
(lang dune 2.7)
(name tyxml)
(license "LGPL-2.1-only with OCaml-LGPL-linking-exception")
(authors "The ocsigen team")
(maintainers "dev@ocsigen.org")
(source (github ocsigen/tyxml))
(bug_reports "https://github.com/ocsigen/tyxml/issues")
(homepage "https://github.com/ocsigen/tyxml")
(documentation "https://ocsigen.org/tyxml/latest/manual/intro")
(generate_opam_files true)
(package
(name tyxml-jsx)
(synopsis "JSX syntax to write TyXML documents")
(description
"\| ```reason
"\| open Tyxml;
"\| let to_reason = <a href=\"reasonml.github.io/\"> \"Reason!\" </a>
"\| ```
"\|
"\| The TyXML JSX allow to write TyXML documents with reason's JSX syntax.
"\| It works with textual trees, virtual DOM trees, or any TyXML module.
)
(depends
(ocaml
(>= 4.04))
(tyxml (= :version))
(tyxml-syntax (= :version))
(alcotest :with-test)
(reason :with-test)
(ppxlib
(>= 0.18))))
(package
(name tyxml-ppx)
(synopsis "PPX to write TyXML documents with the HTML syntax")
(description
"\| ```ocaml
"\| open Tyxml
"\| let%html to_ocaml = \"<a href='ocaml.org'>OCaml!</a>\"
"\| ```
"\|
"\| The TyXML PPX allow to write TyXML documents using the traditional HTML syntax.
"\| It works with textual trees, virtual DOM trees, or any TyXML module.
)
(depends
(ocaml
(>= 4.04))
(tyxml (= :version))
(tyxml-syntax (= :version))
(alcotest :with-test)
(markup
(>= 0.7.2))
(ppxlib
(>= 0.18))))
(package
(name tyxml-syntax)
(synopsis "Common layer for the JSX and PPX syntaxes for Tyxml")
(depends
(ocaml
(>= 4.03))
(alcotest :with-test)
(ppxlib
(>= 0.18))
(re
(>= 1.5.0))
(uutf
(>= 1.0.0))))
(package
(name tyxml)
(synopsis "A library for building correct HTML and SVG documents")
(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.")
(depends
(ocaml
(>= 4.03))
(alcotest :with-test)
(re
(>= 1.5.0))
seq
(uutf
(>= 1.0.0))))