Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jawadcode/htmlisp
Compiles lisp style html into normal html
https://github.com/jawadcode/htmlisp
compiler html lisp rust sexpression-language transpiler
Last synced: 28 days ago
JSON representation
Compiles lisp style html into normal html
- Host: GitHub
- URL: https://github.com/jawadcode/htmlisp
- Owner: jawadcode
- License: mit
- Created: 2021-07-20T00:21:44.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-04T01:10:46.000Z (over 1 year ago)
- Last Synced: 2024-08-21T21:27:13.086Z (5 months ago)
- Topics: compiler, html, lisp, rust, sexpression-language, transpiler
- Language: Rust
- Homepage:
- Size: 1.27 MB
- Stars: 12
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# HTMLisp
## What is this?
A compiler that takes in lisp style html and outputs normal html
## Why is this?
To annoy a few people
## How do I use this?
* CD into cloned repo
* Compile: `cargo build --release`
* Copy executable to `/usr/bin` (`sudo cp target/release/htmlisp /usr/bin`)
* Run: `htmlisp -i -o ` or `htmlisp -w `## Example:
(example.htmlisp)
```lisp
(html
(head
(meta :charset "UTF-8")
(meta :name "viewport" :content "width=device-width, initial-scale=1"))
(body
(h1 "Hello World")
(p "This is a paragraph")))
```compiled using `htmlisp --input example.htmlisp --output example.html` will produce
(example.html)
```htmlHello World
This is a paragraph
```or with `htmlisp --prettify --input example.htmlisp --output`
(example.html)
```html
Hello World
This is a paragraph
```