Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/guenchi/Liber

Liber is a template parser for Scheme List to HTML
https://github.com/guenchi/Liber

Last synced: 2 months ago
JSON representation

Liber is a template parser for Scheme List to HTML

Awesome Lists containing this project

README

        

# Liber

Liber is a template parser for Scheme List to HTML

the procedure are named as HTML tags, they may accept an atom or a list

when it accept a atom, means:
```
(p "exemple")
=>

exemple


```

when it accepts a list, the seconde and third atom in the list copose a pair, and so on...
```
(p '("exemple" "class" "p's class" "color" "red"))
=>

exemple


```

when the first atom is empty, must be a `""`

```
(script '("" "src" "https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"))
=>

```
some procedures only accept a list
```
(link '("href" "http://fonts.googleapis.com/icon?family=Material+Icons" "rel" "stylesheet"))
=>

```

the top and the child elements must be wrapped with `(list)` with we renamed `(!--)`

```
(!--
(html [BODY]))
```
```
(p
(!--
(p "exemple")))
=>

exemple


```

you can see the full usage in exemple.lbr