1.0.1 • Published 9 years ago

handlebars-render v1.0.1

Weekly downloads
7
License
ISC
Repository
-
Last release
9 years ago

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