Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tatut/muggin
Muggin: a Pug inspired HTML templating language for Prolog
https://github.com/tatut/muggin
Last synced: 3 days ago
JSON representation
Muggin: a Pug inspired HTML templating language for Prolog
- Host: GitHub
- URL: https://github.com/tatut/muggin
- Owner: tatut
- Created: 2023-10-14T12:42:31.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-27T16:45:20.000Z (4 months ago)
- Last Synced: 2024-11-21T12:08:35.649Z (2 months ago)
- Language: Prolog
- Size: 37.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Muggin: HTML template engine for Prolog
Muggin is inspired by Pug and uses similar syntax (indentation driven short hand HTML).
Tested on SWI-Prolog.## Usage
Use `parse/2` to parse a list of chars into a template.
And `render/1` to write the HTML of the template to the current output.## Examples
Syntax example:
```
html
head
title This is my document
body
div#app.some-class
| This is the text content
button(onclick="alert('hello')") Click me
```