handlebars-cli-ext 0.0.0

A simple Handlebars CLI interface with some extras
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Handlebars CLI Ext

A really simple CLI wrapper around the [handlebars](https://crates.io/handlebars) crate with some extra helpers:

- `{{ include "my-file.txt" }}`: include the contents of `my-file.txt`
- `{{ shell "ls -l" }}`: Run `ls -l` and include the captured stdout

## Install

```bash
cargo install handlebars-cli-ext
```

## Run

```bash
handlebars-cli-ext < input.tmpl > output.txt
```