Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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
```