Neverending Prototype Mode
Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

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

Keywords

none

install

npm i handlebars-render

Downloadsweekly downloads

68

version

1.0.1

license

ISC

last publish

collaborators

  • avatar
Report a vulnerability