All Projects → AdamBien → spg

AdamBien / spg

Licence: Apache-2.0 License
Static Page Generator based on Nashorn, Java 8 and Mustache

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].