handlebars-render
v1.0.1
Published
command line handlebars templating for piping json through
Downloads
14
Readme
handlebars-render
A command-line handlebars client. Takes data from stdin
and a template from -i
and produces html.
Install
npm install handlebars-render -g
Usage
hb
is a command that accepts data from stdin. For example you could do:
echo '{"foo": "bar"}' | hb -i page.handlebars
Where page.handlebars looks like:
<html>
<head></head>
<body>
<h1>{{foo}}</h1>
</body>
</html>
which would produce:
<html>
<head></head>
<body>
<h1>bar</h1>
</body>
</html>
License
MIT