suri-framework/mlx
Simple JSX support for OCaml
{ "createdAt": "2023-08-30T12:46:07Z", "defaultBranch": "main", "description": "Simple JSX support for OCaml", "fullName": "suri-framework/mlx", "homepage": "", "language": "OCaml", "name": "mlx", "pushedAt": "2024-03-09T12:22:06Z", "stargazersCount": 23, "topics": [], "updatedAt": "2025-06-03T16:35:56Z", "url": "https://github.com/suri-framework/mlx"}An experimental dialect of OCaml to support JSX calling conventions.
This is unusable alpha software, so install at your own risk.
; cat mlx_test/print.mlx --language ocaml───────┬───────────────────────────────────────────────────────────────────────── │ File: mlx_test/print.mlx───────┼───────────────────────────────────────────────────────────────────────── 1 │ let hello_world ~message () = 2 │ <div id="main"> 3 │ <span className="font-bold"> "hello" </span> 4 ~ │ <span className="font-bold"> (message|>string) </span> 5 │ </div> 6 │ 7 │ let () = 8 ~ │ let message = Sys.argv.(1) in 9 ~ │ Mlx_htmx.to_string (<hello_world message=message />) 10 │ |> print_string───────┴─────────────────────────────────────────────────────────────────────────; dune exec ./mlx_test/print.exe -- oh-camel | pup --color<html> <head> </head> <body> <div id="main"> <span classname="font-bold"> hello </span> <span classname="font-bold"> oh-camel </span> </div> </body></html>