Static Page Generator based on Nashorn, Java 8 and Mustache
JavaScript HTML
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.idea
input
lib
output
LICENSE
README.md
spg.js

README.md

spg

Static Page Generator based on Nashorn, Java 8 and Mustache

Prerequisites

  1. Java 8 is installed
  2. jjs is linked

Installation

  1. git clone https://github.com/AdamBien/spg.git
  2. cd spg
  3. chmod +x spg.js

Usage

spg heavily relies on conventions. Executing:

 spg.js

will read any [name].htm file process it with [name].json from input folder and write the resulting [name].htm file in output folder.

Sample

  1. input/index.htm (mustache template) syntax
  2. input/index.json (mustache view / json)
  3. output/index.htm -> the result.

You can also pass the folders as arguments

 spg.js [source] [target]

SPG in Action

  1. spg is used to maintain the http://workshops.adam-bien.com pages and particularly the workshop dates and badges.