/hbs-templater

Command line tool for compiling handlebars templates.

Primary LanguageJavaScript

hbs-templater

Build Status

Command line tool for compiling handlebars templates.

Install

npm i -g hbs-templater

Command Line

hbs-templater compile \
	--params "{'foo': 'bar'}" \
	--input ./foo \
	--output ./bar

Module

import path from 'path'
import { compile } from 'hbs-templater'

compile({
	params: {
		foo: 'bar',
	},
	input: path.resolve('./foo'),
	output: path.resolve('./bar'),
})