A command-line handlebars client. Takes data from stdin
and a template from -i
and produces html.
npm install handlebars-render -g
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:
which would produce:
<html>
<head></head>
<body>
<h1>bar</h1>
</body>
</html>
MIT