Skip to content

Commit 8dd70ab

Browse files
committed
[new release] html_of_jsx (0.0.4)
CHANGES: ## 0.0.4 - [BREAKING] Handle HTML encoding for `'` (@davesnx) - Handle HTML encoding for `"` (from `&davesnx/html_of_jsx#34;` to `"`) (@davesnx) - Improved performance of `JSX.render` (@davesnx) - [BREAKING] Remove `Fragment` in favor of `JSX.list` (@davesnx) - Remove unused `Component (unit -> element)` since it isn't needed (@davesnx) - [BREAKING] Change attributes representation (@andreypopp) - [BREAKING] Remove melange dependency (@andreypopp) - [BREAKING] Lower the OCaml bound to 4.14 (@davesnx) - Make lib wrapped (@andreypopp) ## 0.0.3 - [BREAKING] `Html_of_jsx.render` lives under `JSX.render` (removing the `Html_of_jsx` module entirely) (@lessp) - [BREAKING] Module `Jsx` is turned into `JSX` (@lessp) - [BREAKING] dune's library is now `html_of_jsx` instead of (`html_of_jsx.lib`) (@lessp) - [BREAKING] `JSX.element` is opaque (can't see the type from outside), but we have a `JSX.Debug` module to inspect and re-construct `JSX.element` (cc @leostera) (@lessp) - Improved performance of `JSX.render` (@lessp) - add `hx-trigger` to htmx ppx davesnx/html_of_jsx#13 (@lessp) - `htmlFor` -> `for_` (@lessp) - Fix aria-autocomplete (@davesnx) ## 0.0.2 - Add `Jsx.unsafe` to allow unsafe HTML as children - Fix HTML attributes formatting (charset, autocomplete, tabindex, inputmode, etc...) - Enable HTMX attributes via `html_of_jsx.ppx -htmx` ## 0.0.1 - First working version of the ppx and library - Supports most of features from [JSX](https://reasonml.github.io/docs/en/jsx) (uppercase components, fragments, optional attributes, punning) - but with a few improvements (lowercase components, no need to add annotations) - No React idioms (no `className`, no `htmlFor`, no `onChange`, etc...) - Type-safe, validates attributes and their types ([it can be better thought](davesnx/html_of_jsx#2)) - Minimal - `Html_of_jsx.render` to render an element to HTML - `Jsx.*` to construct DOM Elements and DOM nodes (`Jsx.text`, `Jsx.int`, `Jsx.null`, `Jsx.list`) - Works with [Reason](https://reasonml.github.io) and [mlx](https://github.com/andreypopp/mlx) - Supports some htmx under the ppx (`html_of_jsx.ppx -htmx`)
1 parent 795f80f commit 8dd70ab

File tree

1 file changed

+45
-0
lines changed
  • packages/html_of_jsx/html_of_jsx.0.0.4

1 file changed

+45
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
opam-version: "2.0"
2+
synopsis: "Render HTML with JSX"
3+
description:
4+
"html_of_jsx is a JSX transformation that allows you to write HTML declaratively."
5+
maintainer: ["David Sancho <[email protected]>"]
6+
authors: ["David Sancho <[email protected]>"]
7+
license: "MIT"
8+
homepage: "https://github.com/davesnx/html_of_jsx"
9+
bug-reports: "https://github.com/davesnx/html_of_jsx/issues"
10+
depends: [
11+
"dune" {>= "3.12"}
12+
"ocaml" {>= "4.14"}
13+
"ppxlib" {> "0.23.0"}
14+
"alcotest" {with-test}
15+
"benchmark" {with-test}
16+
"reason" {>= "3.10.0" & with-test}
17+
"odoc" {with-doc}
18+
"ocamlformat" {= "0.26.1" & (with-dev-setup | with-test)}
19+
"ocaml-lsp-server" {with-dev-setup}
20+
"tiny_httpd" {with-dev-setup}
21+
]
22+
build: [
23+
["dune" "subst"] {dev}
24+
[
25+
"dune"
26+
"build"
27+
"-p"
28+
name
29+
"-j"
30+
jobs
31+
"@install"
32+
"@runtest" {with-test}
33+
"@doc" {with-doc}
34+
]
35+
]
36+
dev-repo: "git+https://github.com/davesnx/html_of_jsx.git"
37+
url {
38+
src:
39+
"https://github.com/davesnx/html_of_jsx/releases/download/0.0.4/html_of_jsx-0.0.4.tbz"
40+
checksum: [
41+
"sha256=12c49cb44a7476921d097248540e222cb412cf49a283cc20b92775e2bf2b9c39"
42+
"sha512=96748d99db49817a900ce2b310d5f496cee5e96ba1c90611d204c397549e55797eb76f0952912bcfd5be17e06cf5029fb85b19417ea47ba4543103eb0536ab55"
43+
]
44+
}
45+
x-commit-hash: "b6c86c9248d19a7eae80a3f55019ea38bd0c7384"

0 commit comments

Comments
 (0)