SPG is simple:
input.json + input.htm (processed by https://github.com/janl/mustache.js template) =>
SPG relies on mustache.js for rendering and therefore comes with support for sections, functions, conditional rendering etc.
You will find sources at github. SPG is open source and Apache 2 licensed.