A markup language for the web.
MIT License
You can run the following commands on linux to get it up and running
git clone https://github.com/curlpipe/hyperlisp.git
cd hyperlisp
cargo build --release
sudo cp target/release/hyperlisp /usr/bin/
Or you can use the prebuilt binaries provided in the releases section and move it to /usr/bin/
After installation, you'll be able to convert hyperlisp files into html
To show the help menu:
hyperlisp -h
To convert index.hls
file into html and print it out:
hyperlisp -i index.hls
To convert index.hls
file into index.html
:
hyperlisp -i index.hls -o index.html
You can check out the examples folder to see some examples of how to write it.
Below are some smaller snippets to help you quickly grasp the language.
(h1 Hello World)
<h1>Hello World</h1>
(h1 This is an example of (b Nested tags!) Pretty cool!)
<h1>This is an example of <b>Nested tags!</b> Pretty cool!</h1>
(div id="background" class="container gradient"
Here's a tag: (h1 This is a div)
)
<div id="background" class="container gradient">
Here's a tag: <h1>This is a div</h1>
</div>
(body (h1 Tag number 1) (p Tag number 2))
<body><h1>Tag number 1</h1> <p>Tag number 2</p></body>
(h1 This is a heading, it is displayed) !(This is a comment and it's not displayed)
<h1>This is a heading, it is displayed</h1>