Package Exports
- racejdoc
- racejdoc/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (racejdoc) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
racejdoc
A simple script to generate a pdf or an html page from a eta template and a json/yaml file with properties to render in it.
Install
npm install -g racejdoc
Usage
After the installation run racejdoc to get help on how to use the tool.
If the installation went well the output should be something like this:
Example with template and data in this repo
After the installation
racejdoc -t examples_templates/01.eta --data data_objects/01.json -o output/out.pdf
racejdoc -t examples_templates/01.eta --data data_objects/01.json -o output/out.html -w
this two commands will generate an html and a pdf version of the example into the output folder
Contribute
Fork, clone and in your local folder of racejdoc you can do two awesome step to develop with ease
npm i
npm link .
To install dependencies locally and add your editable version of racejdoc
to your machine.
Modify the linked script
To modify the script, edit the typescript file cli.ts and then run
npm run build
Or you can just "hot-reload" your personal racejdoc
running the following command
npm run start:dev