Skip to content
Branch: master
Go to file
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
lib
 
 
 
 
 
 
 
 
 
 

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.

About

Static Page Generator based on Nashorn, Java 8 and Mustache

Resources

License

You can’t perform that action at this time.