Command line tool for compiling handlebars templates.
npm i -g hbs-templater
hbs-templater compile \
--params "{'foo': 'bar'}" \
--input ./foo \
--output ./bar
import path from 'path'
import { compile } from 'hbs-templater'
compile({
params: {
foo: 'bar',
},
input: path.resolve('./foo'),
output: path.resolve('./bar'),
})