A static website generator, written in Guile Scheme.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


YASWEG - Yet Another Static Website Generator

There is nothing serious NOR anything to be maintained here. I do not intend to take this to the ends of the world. We good? Good.

YASWEG is a static website generator, as the title says. It implements a simple Scheme API foi doing so, and is designed to run on GNU Guile. YASWEG will then write a static HTML file from the information provided. The goal is to build such simple thing, for study purposes.

By using YASWEG, you can generate an HTML page like

<!DOCTYPE html>
        <link rel="stylesheet" href="bootstrap.css">
        <link rel="stylesheet" href="main.css">

        <h1>My Webpage</h1>
        <p>This is a webpage.</p>
        <p>Cool, isn't it?</p>

By using such simple lisp-y syntax:

(use-modules ((yasweg generator) #:prefix yas:))

(yas:on-page "test.html"
    (yas:link-css "main.css"))
    (yas:h 1 "My Webpage")
    (yas:p "This is a webpage.")
    (yas:p "Cool, isn't it?")))


YASWEG is built atop GNU Guile, so you might as well just compile YASWEG once, then import the (yasweg generator) module, and you're good to go.

Inside is a single test example, being used to help create the project.


The LGPL v3 License. See LICENSE for details.

Copyright 2017 Lucas Vieira.