The generator processes instructions
to render
assets
based on templates
combined with data
.
Supports rendering of HTML to Images using webshot
, and creation of text based assets such as JSON, CSS, and HTML using Handlebar templates.
generator.js
- the entry point to run the generatorbuild
- the target directory for produced assetstemplates
- a folder of usable templatestemplates/template-name
- an individual templateinstructions
- a folder full of data to be renderednpm install node-hag -g
hag --help
to view up-to-date Help and Instructionshag init
to create an example project in the current working directoryhag generate
to compiled the instructions and generate assetsIf that all worked as expected, take a closer look at the instructions
folder, and the resulting build
folder to see the generated assets.
npm install
npm test
See: CHANGELOG.md