node-hag
Version:
Node HTML Asset Generator (HAG) - converts HTML and CSS templates into rendered Image assets, and can also produce Text and JSON assets.
34 lines • 615 B
JSON
[{
"asset": "example-image-asset.png",
"template": "/example-html-template.hbs",
"renderer": {
"type": "webshot",
"size": {
"width": 640,
"height": 960
}
},
"data": {
"$ref": "/data/example-data.json"
}
}, {
"asset": "example-text-asset.md",
"template": "/example-text-template.hbs",
"renderer": {
"type": "text"
},
"data": {
"$ref": "/data/example-data.json"
}
}, {
"asset": "example-json-asset.json",
"renderer": {
"type": "json",
"spacing": " "
},
"data": {
"expected-output": {
"$ref": "/data/example-data.json"
}
}
}]