8000 GitHub - sabine/mlx
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

sabine/mlx

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
───────┴─────────────────────────────────────────────────────────────â
4C18
”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
; 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>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • OCaml 99.8%
  • Other 0.2%
0