Crates.io | handlebars-cli-ext |
lib.rs | handlebars-cli-ext |
version | 0.0.0 |
source | src |
created_at | 2022-01-18 12:32:29.002588 |
updated_at | 2022-01-18 12:32:29.002588 |
description | A simple Handlebars CLI interface with some extras |
homepage | https://github.com/simon-bourne/rust-handlebars-cli-ext |
repository | https://github.com/simon-bourne/rust-handlebars-cli-ext |
max_upload_size | |
id | 516185 |
size | 24,813 |
A really simple CLI wrapper around the 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 stdoutcargo install handlebars-cli-ext
handlebars-cli-ext < input.tmpl > output.txt