handlebars-render

1.0.1 • Public • Published

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

Dependents (0)

Package Sidebar

Install

npm i handlebars-render

Weekly Downloads

2

Version

1.0.1

License

ISC

Last publish

Collaborators

  • matthewp