dynamark
v0.1.1
Published
A CLI to render Handlebars markdown templates with JSON or YAML data content
Downloads
12
Maintainers
Readme
dynamark
Render dynamic markdown files using Handlebars templates.
Installation
To install the package globally, you can run
npm i -g dynamarkUsage
Usage: dynamark [options]
CLI to render markdown templates with data content
Options:
-V, --version output the version number
-t, --template <templatePath> markdown template file path
-d, --data <dataPath> data file path (JSON or YAML)
-o, --output <outputPath> output file path (resulting markdown file)
-l, --lint run markdownlint on the result
-h, --help display help for commandExample
If you want to render the example template and data file, you can run the following:
dynamark -t examples/table.template.md -d examples/table.data.yaml --lintThis will produce the following output on stdout:
# test
| Column1 | Column2 |
|-------------|-------------|
| test1 | test1 |
| test2 | test2 |
| test3 | test3 |