Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/guenchi/Liber
- Owner: guenchi
- License: mit
- Created: 2018-03-22T17:44:25.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-09T23:23:58.000Z (over 5 years ago)
- Last Synced: 2024-04-04T15:32:08.263Z (10 months ago)
- Language: Scheme
- Homepage:
- Size: 16.6 KB
- Stars: 11
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-racket-and-scheme - Liber
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