jawadcode/htmlisp

A compiler that takes in lisp style html and outputs normal html

Compile: cargo build --release

HTMLisp

What is this?

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 <path to htmlisp input file> -o <path to html output file> or htmlisp -w <directory to watch>

Example:

(example.htmlisp)

(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><head><meta charset="UTF-8"></meta><meta name="viewport" content="width=device-width, initial-scale=1"></meta></head><body><h1>Hello World</h1><p>This is a paragraph</p></body></html>

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

(example.html)

<html>
	<head>
		<meta charset="UTF-8"></meta>
		<meta name="viewport" content="width=device-width, initial-scale=1"></meta>
	</head>
	<body>
		<h1>
			Hello World
		</h1>
		<p>
			This is a paragraph
		</p>
	</body>
</html>

Information - Updated Oct 27, 2021

Stars: 8
Forks: 1
Issues: 0

Repositories & Extras

Rust bindings for libinjection

Add libinjection to dependencies of Cargo

Rust bindings for libinjection

Documentation (source) •

Maud is an HTML template engine for Rust

Documentation (source) •

Rust Compiled Templates — ructe

This is my attempt at writing a HTML template system for Rust

Rust Compiled Templates — ructe

Rust bindings for the C++ api of PyTorch

LIghtweight wrapper for pytorch eg libtorch in rust

Rust bindings for the C++ api of PyTorch

scraper is an HTML parser and querying engine with CSS selectors.

While still looking for more help with this repo, it's a solid choice for basic web parsing in rust

scraper is an HTML parser and querying engine with CSS selectors.

A simple HTML game build using Rust and Yew with a touch of Javascript

Follow the instalation instructions from

A simple HTML game build using Rust and Yew with a touch of Javascript

A port of FactorishJS to Wasm/Rust (and a bit of HTML5+JavaScript)

This project is a demonstration that how HTML5 and Rust) can be used to create a game

A port of FactorishJS to Wasm/Rust (and a bit of HTML5+JavaScript)

Ad hoc HTML for Rust

This crate aims to provide a Rust API to easily create HTML div elements and manage their positions by pixel coordinates

Ad hoc HTML for Rust

The Märkəd Project

A rust language project for parsing, filtering, selecting and serializing HTML

The Märkəd Project

tl is a fast HTML parser written in pure Rust

This crate (currently) does not strictly follow the full specification of the HTML standard, however this usually is not a problem for most use cases

tl is a fast HTML parser written in pure Rust

A tool to extract text from HTML from your terminal

If you have rust toolchain installed, node2text is available on official website

A tool to extract text from HTML from your terminal
Facebook Instagram Twitter GitHub Dribbble
Privacy