Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: about 1 month ago
JSON representation

Compiles lisp style html into normal html

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)
```html

Hello World

This is a paragraph


```

or with `htmlisp --prettify --input example.htmlisp --output`

(example.html)
```html







Hello World



This is a paragraph


```