https://github.com/lpil/html-lustre-converter
HTML -> Lustre
https://github.com/lpil/html-lustre-converter
Last synced: 9 months ago
JSON representation
HTML -> Lustre
- Host: GitHub
- URL: https://github.com/lpil/html-lustre-converter
- Owner: lpil
- Created: 2024-04-11T20:40:54.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-27T15:02:55.000Z (about 1 year ago)
- Last Synced: 2025-04-27T15:33:35.579Z (about 1 year ago)
- Language: Gleam
- Homepage: https://lpil.github.io/html-lustre-converter/
- Size: 54.7 KB
- Stars: 35
- Watchers: 2
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# html_lustre_converter
The Lustreizer. Convert regular HTML markup into Lustre syntax.
[](https://hex.pm/packages/html_lustre_converter)
[](https://hexdocs.pm/html_lustre_converter/)
This package depends on the `javascript_dom_parser` package, which only works in
the browser. If you wish to run this using the Deno runtime you will need to
call the `install_polyfill` function from the `javascript_dom_parser/deno_polyfill`
module. It may not be possible to use this library elsewhere.
```sh
gleam add html_lustre_converter
```
```gleam
import html_lustre_converter
pub fn main() {
"
Hello, Joe!
"
|> html_lustre_converter.convert
|> should.equal("html.h1([], [text(\"Hello, Joe!\")])")
}
```
Further documentation can be found at .