keithamus / hbs-cli

A CLI for handlebars
43 stars 26 forks source link

adds an option to accept data directly from stdin #59

Closed humanchimp closed 4 years ago

humanchimp commented 4 years ago

Closes #54

Adds an option to receive data from stdin directly.

example

$ echo '{"test":123}' | hbs --stdin --stdout template.hbs

template.hbs

*{{test}}*

output

*123*